Android :: Error - MediaPlayer Start Called In State 64

Oct 19, 2009

calling MediaPlayer.onStart() from Activity.onResume() (after the Activity has been paused) causes the following messages in logcat: MediaPlayer start called in state 64 MediaPlayer error (-38, 0) MediaPlayer Error (-38,0) Now the question is, what are the messages trying to tell me? What state is 64?

Android :: Error - MediaPlayer start called in state 64


Android :: ERROR/MediaPlayer - 1066 - SetDataSource Called In State 128

Apr 7, 2009

I'm using MediaPlayer and sometimes when first audio is about to end and I click to the next audio I get the exception below. Looks like the MediaPlayer is in some weird state of stopping playing and cannot accept audio at the moment.

The exception goes to the native code which is greeks to me. I couldn't find anything about this error on the internet either.

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

View 7 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 :: Saving Dialog State - OnStop Not Getting Called?

Jul 14, 2009

I'm saving the state of my activities for orientation change support, it works well. Sometimes I have a dialog open though and need to save its state as well. My dialog's onStop() method doesn't seem to get called when I change orientation. Where would get notified inside the Dialog that we're being destroyed, so I can save its state?

View 3 Replies View Related

Android :: Mediaplayer And SeekTo - On Start-up?

Jun 16, 2010

I'm implementing a custom video player because I need custom video controls. I have an app with only one activity, which on start-up shall starts playing a video right away.

Now, the problem I have (on my Nexus One):

I don't want the video to start from the beginning, but from a later position. Therefore I do a seekTo(16867). Since seekTo is asynchronous, I place the start call of the mediaplayer (player.start()) in the onSeekComplete of the onSeekCompleteListener.

**The strange behaviour I experience though is that I can see/hear the video playing from the beginning for a few millisecs before it actually plays from/jumps to the position I seeked to. But - on the other hand - the Log output I call before the player.start returns the correct position 16867, where I seeked to.**

Below is the relevant code section, the complete class is at http://pastebin.com/jqAAFsuX

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

View 2 Replies View Related

Android :: MediaPlayer - Raw Resources - Stop And Start

Jun 3, 2010

I'm playing around with the MediaPlayer class to reproduce some sounds/music. I am playing raw resources (res/raw) and it looks kind of easy.

To play a raw resource, the MediaPlayer has to be initialized like this:

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

Until here there is no problem. The sound is played, and everything works fine. My problem appears when I want to add more options to my application. Specifically when I add the "Stop" button/option.

Basically, what I want to do is...when I press "Stop", the music stops. And when I press "Start", the song/sound starts over. (pretty basic!)

To stop the media player, you only have to call stop(). But to play the sound again, the media player has to be reseted and prepared.

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

The problem is that the method setDataSource() only accepts as params a file path, Content Provider URI, streaming media URL path, or File Descriptor.

So, since this method doesn't accept a resource identifier, I don't know how to set the data source in order to call prepare(). In addition, I don't understand why you can't use a Resouce identifier to set the data source, but you can use a resource identifier when initializing the MediaPlayer.

I guess that I'm missing something. I wonder if I am mixing concepts, and the method stop() doesn't have to be called in the "Stop" button.

View 4 Replies View Related

Android :: AudioTrack Start Called From Thread

Dec 8, 2009

I am getting the 'AudioTrack::start called from thread' when starting an AudioTrack. I am using it in a thread. I asume I shouldn't but why? I see it as a major limitation.

View 4 Replies View Related

Android :: Mediaplayer Error - 4

Jun 19, 2009

a mp3 file which can be played well in sdcard. but when i copy it to another subarea in linux linked as /data/test. but i can not be played in that directory

View 2 Replies View Related

Android :: Unexplained Error From MediaPlayer / Fix It

Feb 21, 2010

My code tries to play an MP3 file from res/raw.

Code...

After player.prepare() is called.

I really don't have a hint.
I won't use MediaPlayer.create() because I need player.setAudioStreamType(AudioManager.STREAM_RING ).

View 1 Replies View Related

Android :: MediaPlayer PVMVErrTimeout Error ?

Sep 28, 2009

I'm writing a streaming music player application and I frequently get a "PFMVErrTimeout" error generated by the PlayerDriver according to the ADB log. This appears to happen even with good reception. I can't seem to find any documentation on this error message.

What does a PFMVErrTimeout" error indicate?

Is there anything that can be done from an application that can eliminate or minimize this error? Is there a way to recover other than freeing up the MediaPlayer and creating a new one?

Also, what is the ERROR/PlayerDriver(26027): HandleInformationalEvent: type=28 UNHANDLED refer to? Do I need to add an event handler for this?

This error seems to be mostly associated with the "/dalvikvm(55): GC freed" event.

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

View 3 Replies View Related

Android :: MediaPlayer Error - 1,-1004

Aug 26, 2010

I am getting an error (1,-1004) when i try to play a .amr file. The file is about 15 seconds long and after playing for about 4 seconds, it stops and I get this error.

I am making the calls just as mentioned in the docs..

CODE:......

Is there any documentation related to Media player errors..

View 2 Replies View Related

Android :: Mediaplayer Error PVMFErrCorrupt

Oct 26, 2009

We have developed android mmsradio channel player. It works on android sdk1.5r2 ( Emulator / device ) well. but when we recompiled the same to Sdk1.6r1. It fails.

Errorcode we are getting -- > E/PlayerDriver( 554): Command PLAYER_INIT completed with an error or info PVMFErrCorrupt

View 3 Replies View Related

Android :: Storing Game State Information That Is Retained And Used Upon Next Start-Up

Sep 15, 2010

I have an unlockable mode in my game that is only available once the story mode has been completed. This works perfectly if the story mode is completed during a test play through, because upon returning to the main menu the bonus mode is unlocked and selectable. However when I shut down the app and relaunch it, none of the previous state information is retained and it requires you to beat the story mode again to access the bonus mode.

I use the onSaveInstanceState method to create a bundle that stores this information (ie. a boolean whether the mode is unlocked or not), but this information seems to be lost between ending the app, and relaunching it. The onCreate method takes the parameter of a savedInstanceState but yet this seems to be null.

Is there a step that I'm missing out, or doing incorrectly somewhere along the line? On a PC game I would just serialize the state into a text file and look for a special string/symbol upon initialization but I cant do that here so i thought the outState bundle you create in SIS was how you retained information for use upon next launching the app again?

View 2 Replies View Related

Android :: Error Creating MediaPlayer With Uri Or File In Assets

Jun 22, 2010

I copied song.mp3 to my project's assets directory and wrote this code:

private MediaPlayer mp;

Uri uri = Uri.parse("file:///android_asset/song.mp3");

mp=MediaPlayer.create(this, uri);

After running the create statement, the variable mp is null.

View 1 Replies View Related

Android :: MediaPlayer - Command PLAYER_SET_DATA_SOURCE Completed With Error Or Info PVMFErrNotSupported

Dec 8, 2009

I have two versions of the same application that starts by playing an mp3 from the res/raw/ directory, both versions of code are the same as far as the MediaPlayer is concerned and the code used. I get the following error in one version and it plays just I would expect in the other version. I am using 1.5 as my target. I get the same issue on my the devices (G1 and G2) as well as the emulator. I have read some other posts with the same issue and still am unable to resolve my own issue. For those who are going to come back with use MediaPLayer.create (context, id) I can not as I want to control what is being played without creating new instances of the player. It perplexes me that the same code works in another version of the same app that has no change in the code (in fact the alternative app just has a reduced number of images in the drawable folder).

The error message also will occur if the file is not found by using mp.setDataSource("file");

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

View 3 Replies View Related

Android :: Error With Listening To Phone State Listener In Service

Nov 11, 2009

I have a BroadcastReceiver that listens for the BOOT_COMPLETED, that part works I know because I disabled my phone listener and displayed a Toast within. That BroadcastReceiver is supposed to start a service, that also works. I run into Force Close issues when my service attempts to tell my TelephonyManager to listen. Any one have any ideas? Here is my code StartSeviceAtStartUp.java import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent;

View 3 Replies View Related

Motorola Droid 2 :: Penn State Web Mail Error

Sep 17, 2010

I can not send messages out of my Webmail.. I followed the advice of the Droid 1 thing and changed my email format to IMAP, but that still didn't succeed. My settings are now as following:
General Settings:
Account Name: Webmail
Real name: My name
Email address: My email
Incoming Server:
IMAP Mail Server
Server: Email.psu.edu
Port: 993
Username: my email
Use Secure Connection and Verify Certificate are checked.
Outgoing server:
smtp.psu.edu
Port: 25
Secure Connection and Verify Certificate checked
Other settings:
# Of Messages to Sync: 25
I've tried everything but it just isn't working.

View 4 Replies View Related

General :: Samsung Galaxy Tablet 3 - Having Error With App Called Network Spoofer?

Dec 12, 2013

I'm having an error with an app called network spoofer

Whenever I use this I get this in the output: chroot can't execute 'spoof': No such file or directory ?

My device

Samsung Galaxy Tablet 3 10"

View 2 Replies View Related

Android :: Emulator Start Up Error?

Sep 17, 2009

when i am running the project in eclipse. at finally showing this message. ActivityManager: - exec '/system/bin/sh' failed: Bad address (14) - app is installing but not starting first time automatically.

View 7 Replies View Related

Android :: Got An Error During Activity Start / Fix It

Jul 26, 2010

Got an error during activity start. code...

View 2 Replies View Related

Android : Guidelines For Start Up / Error With WiFi

Aug 22, 2010

Today I got my first android phone. It is the Samsung Galaxy Spica.I don' t know anything about android phones so I need someone to show the first steps and explain to me the specifications of this operating system.I have a problem with my WiFi. The phone finds my network, I give the password but it says "Connection failed". Can anyone help me?

View 7 Replies View Related

Android :: Changing Displayed State Of Views Based On Parent ViewGroup's State

Aug 11, 2010

I have a compound UI component built up from a ViewGroup containing a number of TextView, ImageView etc. components. Many of these have StateListDrawables as their images/backgrounds. Is there any way of making them select from this drawable based on the state of the parent ViewGroup rather than the component itself? Ideally I want to be able to change the visual state of all children of the ViewGroup (text colour, image etc) based on the state of the ViewGroup, preferably without having to hook up complex logical code. This seems like a fairly common sort of requirement, so I was hoping it would be straightforward in Android - am I going to be disappointed?

View 1 Replies View Related

Android :: App Crashes At Start And Gives A Force Close Error

Nov 19, 2010

VitaminTable.java:

CODE:.....

manifest file:

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

main.xml:

CODE:...

I get the following error:

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

View 3 Replies View Related

Android : ActivityThread.performLaunchActivity Error - Program Won't Even Start Up

Jun 9, 2010

I'm getting an ActivityThread.performLaunchActivity(ActivityThread$ActivityRecord,Intent) error each time I boot up my program in the debugger. The program won't even start up! Any help would be greatly appreciated! I'm very new to this environment. Let me know if you need anymore information/code to help me out.

Here is my logcat:

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

View 1 Replies View Related

Android :: Error Parsing XML / Text Declaration Not At Start Of Entity

Oct 10, 2010

I accidentally imported a resource file with a capital letter in the name (SDK 8) and as we all know, that corrupts the R.java file in a way that rebuilding the project doesn't fix (I renamed the file to something legal from within Eclipse, of course). So now the build chokes with the error above when it hits the first xml file in res. In SDK 7 the only fix was to build a fresh project and move everything over. I'm hoping there is something better in SDK 8.

View 8 Replies View Related

Android :: Phone State Listener State Transitions

Feb 8, 2009

I'm a little confused by what I'm seeing with regards to phone state transitions via the PhoneStateListener. When I receive a call, this is what happens: (call comes in) RINGING -> IDLE (I pick up) OFFHOOK (I hang up) IDLE It's that first transition from RINGING to IDLE without any interaction from me (not ending the call, not answering the call) that confuses me. Do I really have to implement an idle counter to know that an incoming call has really ended? Seems like the reported phone state represents some sort of phone state that isn't the obvious one.Is this a bug or am I just not in tune with the paradigm here?

View 2 Replies View Related

HTC EVO 4G :: Titanium Backup Start Up Error

Oct 20, 2010

I get the error when i start up ti backup. "sorry, I could nto acquire root privileges. This app will *not* work! please verify that your rom is rooted and includes busybox and try again." well i am rooted, using the default/stock rom. as for busybox goes. i installed busybox from app market.

View 3 Replies View Related

Android : Unable To Start Service Intent Error In Client-Server Project / Fix It?

Feb 12, 2009

I am getting the below error when ever i am trying to call the bind service. 02-12 20:17:25.486: WARN/ActivityManager(58): Unable to start service Intent { action=oem.android.proj2.IRemoteService }: not found

I have created the Client-Server application. At the Server site i have used the AIDL to impliment the interfaces in my Service class. At Client site i have exposed the AIDL interfaces and have one Activity that mainly do the IPC mechanism , i mean ServiceConnection, bindService and then call the Serivce of the Client site. But i am getting the error i mentioned during the bindService call.

Could you please let me know the steps mainly i have to follow to run the Client -Server Application. For time being i am running the Client .apk first and then the Server .apk, but the server one giving me error.

It would be great if you could let me know what all permission short of thing to take care, as my Client and Server code are placed at different APks, so do i need to import the Client project in my Server Project, if yes then how to impliment that.

View 1 Replies View Related

Error - Unable To Start Activity ComponentInfo

Mar 4, 2012

I am getting this and can't seem to find out why?

Code:
03-04 14:04:41.565: E/AndroidRuntime(742): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.ondrovic.boombozzpassport/com.ondrovic.boombozzpassport.BeerForm}: java.lang.IllegalStateException: get field slot from row 0 col -1 failed

Here is the code where I am trying to start the activity

Code:
private AdapterView.OnItemClickListener onListClick = new AdapterView.OnItemClickListener() {
@Override
public void onItemClick(AdapterView<?> parent, View v, int pos, long id) {
Intent intent = new Intent(getApplicationContext(), BeerForm.class);

[Code] ....

Also the activity will start if I take out the intent.putExtra(BeerForm.INTENT_BEER_ID, String.valueOf(id));

View 1 Replies View Related

HTC Hero :: Unable To Start WiFi - Intermittent Error

Nov 24, 2009

I seem to have an intermittent error when trying to start WiFi. Mostly (>95%) of the time I get "unable to start WiFi". Occasionally it works but this is rare and usually when it has been switched off for a few days. The problem occurs when I try to start via the wi-fi widget or via the MenuSettingsWireless controls path. I'm reluctant to do a factory reset unless I really have no other option.

HTC Hero
on Vodafone UK
Firmware version 1.5
Build# 2.73.405.5

View 2 Replies View Related







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