Android :: MediaPlayer On Phone Only Plays Part Of My Song

Aug 6, 2010

I am trying to play a file using the MediaPlay. The first time it is played, it only plays for 1 or 2 seconds then cuts out and never returns. The second time I play the song, it goes about 3 seconds. This function is in the onCreate function:

checkin.setOnCheckedChangeListener(new OnCheckedChangeListener(){
public void onCheckedChanged(CompoundButton buttonView, boolean isChecked){
MediaPlayer mp = MediaPlayer.create(context, R.raw.my_song);
mp.start();
v.vibrate(500);
myLocation.getLocation(context, locationResult);}

Is another thread clearing overriding the song? How do I get my whole song to play?

Android :: MediaPlayer on phone only plays part of my song


Android :: Native MediaPlayer Plays Audio But Not Video - 3gp Format

Jun 16, 2009

I have the following native source code that is supposed to display video. It plays 3gp file ok and I can hear the audio, but the video is not shown.

CODE:..............

View 4 Replies View Related

Android :: MediaPlayer Plays Sound But Screen Is Black / No Video

Feb 14, 2009

I'm just trying to play a local video that is a resource with the MediaPlayer class in the most simple way possible. I have confirmed that the video works with players that I download from the marketplace, so I'm assuming that's not the issue.

The problem is that I just get a black screen with no video. There is audio from the file playing though, so I know that the file resource is being accessed correctly, it's just not showing anything on the screen in the emulator.

The one other note is that at any time whenever I try to access getVideoWidth() or getVideoHeight() I get this (non-blocking) error:

ERROR/MediaPlayerService(24): getVideoSize returned -1

Any ideas as to what I could be doing wrong?

import android.app.Activity; import android.os.Bundle; import android.view.SurfaceView; import android.view.SurfaceHolder; import android.media.MediaPlayer;
Code...

View 9 Replies View Related

HTC EVO 4G :: Song Plays When Recieving Text As Well As Notification / How To Fix This?

Sep 11, 2010

So when I receive a text, the notification sound plays BUT it also plays some Lady GaGa song from my mp3s! I use the default messaging app and default media player. How can I fix this?

View 2 Replies View Related

Samsung Captivate :: How To Make Some Part Of Song Ringtone?

Jul 23, 2010

So I have a song that I like (smooth criminal) and I would like the opening to be my ringtone. I have heard of ringdroid but it doesn't seem to work well on my phone.

View 1 Replies View Related

Android :: MediaPlayer.start - Doesnot Work Fine After Calling MediaPlayer.seekTo - 0

Apr 27, 2009

I have a requirement to play several sounds many times in my game so instead of creating the MediaPlayer again and again I have called mp.seekTo(0) in onCompletion(mp) so that it will restart. Sometimes the sound is not audible from the device when I call mp.start () after setting mp.seekTo(0); but the player calls onCompletion() without playing any sound, this is observed randomly on most of the sounds

My sounds are of short duration mostly less than a second.

I am using a separate MediaPlayer for each sound (as I need this) -

There are almost 28 sounds in my game so i will be creating 28 MediaPlayers.

Below is the attached code for player

Also If I try to play many sounds one after the other in a short period of time i get an error saying "no more track names available". can u tell Why this is happening...?

check the below code:

CODE:........

View 9 Replies View Related

Android :: Cheapest Phone That Plays Angry Birds

Oct 30, 2010

Im desperate here. My son discovered Angry Birds on my Droid X and is now as addicted as my wife and I and wont stop asking me for my phone LOL!! Im looking for the cheapest Android phone I can buy on Ebay that has Wifi so I can give it to him to play Angry Birds and a few other games he likes. Any ideas?

View 19 Replies View Related

Android :: Phone Not Showing Part Of Layout?

Oct 31, 2010

Why the last section is not displayed at all? AFAIK It should. It starts with :
<LinearLayout
android:orientation="vertical"
android:layout_height="match_parent"
android:layout_width="70dip"
android:minWidth="70dp"
android:layout_weight="1">

View 1 Replies View Related

HTC Droid Eris :: Music Plays When Phone Plugged Into PC

Aug 4, 2010

I just activated replacement Eris number two. Upon plugging it into my PC, the phone started playing a loud music track at maximum volume. When I went to adjust my volume, I found that this sound was being controlled by my ringtone volume and not media volume (interesting). I did a reboot of the phone and was greeted by the sound as soon as I plugged it in. The sound's duration is about thirty seconds.

I've plugged it into the other computer here and had the same issue. I've had it plugged into my computer for about an hour, and I have heard the music start up without notice twice so far. I did a google search as well as a search here and haven't found another user with this peculiar (if amusing/irritating) issue. I can upload a video/soundclip if wanted. I was considering rooting but I don't want to have to go to the trouble if I'm going to have to send this phone back to Verizon.

View 2 Replies View Related

General :: Bluetooth Audio - Plays Through Phone Speaker?

Mar 14, 2013

I have a samsung galaxy s2 on AT&T running android 4.0.4. I have the bluetooth set up to play audio through my car stereo.

Everything was working fine until a couple of days ago when I accidentally booted my phone into safe mode. I re-booted it back into normal mode, but a lot of my settings got messed up after that happened.

The odd thing is that now, when I am in my car, the phone connects to the stereo over bluetooth - I see the name of the song, artist, etc information on the car stereo, and can do things like skip to the next song using the controls in the car. However, the sound actually plays through the phone speaker instead of the car speakers!

View 1 Replies View Related

HTC Incredible :: Media Player That Plays From Both Card And Phone Storage?

Jul 27, 2010

I am becoming sick of the Incredible's stock player, mainly because of its poor shuffle mode. I have looked at apps like MixZing, Cubed, and DoubleTwist, but these all seem like they won't play music from both the sd card and internal phone storage like the stock player. Are there any players that will do this, and perhaps find album art like the others?

View 1 Replies View Related

Sony Ericsson Xperia X10 :: Music Plays When Answer Phone

May 18, 2010

When I take a call and I'm listening to music it stops when ringing but then it starts playing when I'm trying to talk, the only way I can hear is if I hang up and go and kill the mediaplayer i'm using. I thought it was just mediascape being weird but I switched to mixzing and it still does it! Has anyone else had this?

View 6 Replies View Related

Samsung Vibrant :: Turn Off Loud Jingle Phone Plays When It Powers Up / Down?

Sep 15, 2010

Is there a way to turn off the loud jingle the vibrant plays when it powers up or down?

View 2 Replies View Related

Android :: MediaPlayer / Play Media Via Speaker Phone

Jul 22, 2010

I am able play a media using MediaPlayer. The media played via the ear piece. But how can I play the media with speaker phone? e)But that does not work. And I have added this to my Manifest file.

View 7 Replies View Related

Android :: Phone Playing Long Annoying Song / When Get Sms

Sep 5, 2010

I've had Handcent sms app for a long time and never had any problems, I love it. But with the newest update it has begun playing a long annoying song when I get an sms, even though I've set it to a normal single sound. I've tried reinstalling it, but it doesn't help. Can anyone help me? Or recommend another sms program, just as good.

View 1 Replies View Related

HTC EVO 4G :: Anyone Blacked Out Red Part Of Phone Around Camera Lens?

Jun 23, 2010

I want to do that because I don't like the red poking throughI'm sure that others do. Just thought I'd ask if anyone blacked theirs out, though.Ideas are appreciated. That is all.

View 5 Replies View Related

HTC Hero :: Phone / 3rd Part Developer ROMS Have New Google Navigation?

Dec 11, 2009

Does the Hero or any of the 3rd part developer ROMS have the new Google Navigation?

View 2 Replies View Related

Media :: Music Carries Around Phone / Few Song Or As Much As Can Fit?

Oct 17, 2010

Curious about how much music everyone carries around. A few song or as much as you can fit? And if you had you way, how much do you have? Do you listen to a single genre or do you have stuff from everywhere?

View 15 Replies View Related

HTC Hero :: How To Fix Song Tags Not Working On Phone Player?

Sep 24, 2009

I've recently gone through all my songs and using mp3tag (PC software for tagging music files) I've tagged my songs, ie band name, album, album art work. I've checked in winamp and itunes and all the information is the same everywhere. All except the Hero phone. When I've transferred all my songs to the SD card most of them show up correctly, with right name, album, art work but around a quarter of them come up under "unknown" album. Does anyone know why this might be or how I can make the Hero player recognise the artist/album names?

View 7 Replies View Related

HTC Droid Eris :: Setup A Song On Phone As An Alarm?

Mar 31, 2010

Is there a way to set a song on my phone as an alarm. The default options are just way too annoying for me. If I can't do it with the default clock, is there an app that will let me do this?

View 5 Replies View Related

Samsung Galaxy S :: Fastest Way To Play A Single Song In Phone

Nov 16, 2010

I recently had to play a song often and i wanted to do it quickly.I did one method.However, i request all here to tell me your way of opening the mp3 or video file very quickly.Generally i believe that everyone goes to gallery or video player or audio player and they go navigate to that particular song and play it. Am i right?

View 8 Replies View Related

Android :: App Plays .wav Files?

Jul 15, 2010

I get emails with .wav files from my home phone provider for voicemail. When I try to open it, I get "can't play". What can I use to play these on my HTC Droid Incredible?

View 1 Replies View Related

Android :: Only Plays Default Ringer

May 13, 2010

I have SCOURED this forum - and others - in search of an answer for my problem and have simply not found it. I accidently set up a ringtone to be the default ringer. Which is no big deal, except that now none of my custom ringers work. No matter who calls, it plays the default ringer. I have tried to change the custom ringer to something else (contact, options - and it says the correct name...plays the correct ringer when demo-ed), and change it back to what I wanted originally - didn't work.

Tried changing the default ringer and repeating the above - didn't work. Tried using two different ringer apps from the market - didn't work. I do not use any type of task killer, and don't know the slightest thing about rooting or anything of that nature. I restarted the phone several times. Also took the battery out while still on...didn't work. After all that...still rings the default ringer EVERY time. I'm at a total loss.

View 2 Replies View Related

Android :: Iheartradio Plays In Slow Motion

Jan 13, 2010

Whenever I play the local newstalk radio stations on my android Moment, the streams start out ok, for like 1 second, then it sounds like the people are talking in slow motion. I cab listen to fm stations and some other am stations in other cities... anyone have this appear and maybe test 1530 & 650 in Sacramento, ca. Does it work for anyone else?

View 9 Replies View Related

Android :: Interactive Touchscreen Plays Sounds Twice / Way To Fix?

Sep 29, 2010

I have an interactive image which uses OnTouchListener to get the coordinates. In doing so...if a user places their finger on the area it may hit it multiple times thus getting new coordinates within the area that plays the sounds...thus playing the sound twice. Any suggestions on how to clear up this issue?

View 3 Replies View Related

Android : Alarm CLock - Plays For Only 1 Minute Before Snoozing Itself

Jul 30, 2010

1) On my phone (OS 2.1) the standard alarm clock plays fine, but plays for only 1 minute before snoozing it self. Shouldn't it play the tune until I snooze it myself?

2) I hear everybody rave about Kaloer clock... so I downloaded it, and yes, very pretty and seemingly very customizable... but, of all the music I have on the phone (several gigs), it strangely only detects 2 songs.. why? The location directory for those two songs is the same as the rest..

View 2 Replies View Related

Android :: Plays Clear Channel Check Out Tune In Radio?

Sep 3, 2010

Alternative to i Heart radio - (which only plays clear channel) Check out "tunein radio" just found my Friday night HIGHSCHOOL FOOTBALL GAME ON THIS APP!!!!!!!

View 10 Replies View Related

HTC EVO 4G :: Iphone 3gs Plays Mp4 Better Than

Jun 7, 2010

Me and my brother bought the EVO and his gf has an iphone 3gs. So they both loaded the same mp4 file on their phones and played them back side to side for comparison. He said that the video looked better on the 3gs than the EVO.

View 14 Replies View Related

HTC EVO 4G :: Epic Or Evo Which One Plays More Formats?

Sep 26, 2010

Evo or Epic? My main question is what phone plays more formats?(mp4,mpeg,mp3)Yes it's for porn! And your point?

View 1 Replies View Related

Media :: An App That Plays Aac Streams?

Apr 22, 2010

AOR by leadapps did this well. But when I upgraded my moment to eclair 2.1, I could no longer find the app. This is one reason the android experience has been a let down for me; I'm no bagger or birther, but damn...this is one socialist OS. Anyway, what have you used to hear streams of .aac's?

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved