Res: What is Mediaplayer.[..] onBufferingUpdate actually telling me?

by Luiz Fabiano Cruz » Thu, 30 Jul 2009 01:20:59 GMT

Sponsored Links

You don't get updates because your player is consuming the media data, so as 
soon as the data is arrived (from remote source) it's being played.
try to pause for a while to see what happens. 
the idea is don't let the buffer gets empty or you will have to restart the 
player (i'm not sure this happens in android, it DOES in java).


De: zero <>
Para: Android Developers <>
Enviadas: Quarta-feira, 29 de Julho de 2009 11:31:12
Assunto: [android-developers] What is Mediaplayer.[..] onBufferingUpdate 
actually telling me?

Hi all

I'm trying to play streamed mp3 from a remote source. basically it
works, but the behaviour of the bufferingupdate listener is a riddle
to me. I either get no calls at all, or updates like 1% , 2% then
nothing more. music is playing already, but the buffering never goes
to 100%.  which i think is the cause for getting "unknown mediaplayer
errors" after calling pause/stop and then start again.

so, ??? ideas ??


Veja quais so os assuntos do momento no Yahoo! +Buscados 

Other Threads


I'm developing an app that needs to start when the phone is power plugged.
To do so, I used this code in manifest file

<application android:icon="@drawable/icon" android:label="@string/app_name">
        <activity android:name=".Activity"
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
<activity android:name=".Activity2"
 android:label="@string/app_name" />
<reciever android:name=".Receiver">
android:name="android.intent.action.ACTION_POWER_CONNECTED" />

In Receiver file:

public class NoteReceiver extends BroadcastReceiver
public void onReceive(Context context, Intent intent)
context.startActivity(new Intent(context,Activity2.class));

This code was suposed to start the Activity2 Activity, but it's not working!
Does someone know that's wrong?
Douglas Fonseca
Engenharia da Computao 2010
Universidade Estadual de Campinas


2. Buying your own App, Testing Licensing

So, apparently i'm unable to buy my own app.
Two problems:

First is that it looks like Market wont accept my Google Apps
credentials even though I have a valid checkout account (including
merchant account).
This thread describes others having the same problem:

Also, I came across another bit of info saying that developers are
*not allowed* to buy their own apps re the Google Checkout policies.
The problem is that in order for licensing to be tested properly, not
to mention I actually want to *use* my own app (because i like it), I
need to get it through the Market. See:

So, can someone riddle me this:
If the Market refuses to work with my existing account and I'm not
allowed to buy my own app anyway, how the heck am I supposed to use
and or test the darn thing using Licensing?

I might as well roll my own licensing API... at least then I know it
would work!


3. Application related data and cache options

4. root operations for Android porting

5. how to get root permissions to do a adb remount?

6. does anybody know how to copy files to the internal storage?

7. Display a dialog in landscape irrespective of current screen orientation