audio flinger :(

by schwiz » Sat, 05 Sep 2009 12:24:15 GMT

Sponsored Links
 I am constantly getting horrible playback on music on my g1, It will
cut out constantly for a second or two, I finally caught it happen
while I had log cat running, anyone know what this error is from and
how to fix it?  I am running the latest cyanogen mod but this was
happening to me way back when I was running regular tmobile cupcake
(actually the reason I rooted, because I thought It was a memory
issue)  anyways here is the log message.

09-04 23:18:09.953: WARN/AudioFlinger(123): write blocked for 156
09-04 23:18:10.363: WARN/AudioFlinger(123): write blocked for 412
09-04 23:18:10.604: WARN/AudioFlinger(123): write blocked for 235 msecs

audio flinger :(

by ernestw » Sat, 05 Sep 2009 20:19:01 GMT

 I noticed the same thing when playing OGG files through the
MediaPlayer.  In my game FRG, the draw/update thread probably swallows
a large portion of CPU time causing the occasional skip.  Music also
tends to skip when the garbage collector runs.  The problem doesn't
happen for me if I play MP3s through the MediaPlayer.  Unfortunately
MP3s seem to have a fraction of a second delay when starting while
OGGs do not.

I've also noticed the AudioFlinger issues but they don't seem to
correlate with the pauses I experience.  I've never had write blocks
for the amount of times you've listed though.

Anybody else have similar issues?

  Ernest Woo
  Woo Games 


Sponsored Links

audio flinger :(

by Jay » Mon, 07 Sep 2009 01:42:32 GMT

 I have a similar problem when piping music through bluetooth to my
motorcycle helmet.  I get a lot of skips and pauses sometimes.  It
also happened to me both before I rooted, and while I was on JF &
Cyanogen's ROMs.  I'm not sure how to run a log, but if you can give
me the steps I'll be happy to do so.


audio flinger :(

by schwiz » Mon, 07 Sep 2009 08:53:20 GMT

 if you are rooted you can open the terminal and type

logcat -help

to show a list of logcat commands, to save the file i think its
logcat -c "filename"  or something

I use eclipse and the sdk to view the logcat, which is much easier and
color codes and you can copy lines out of it, but if you don't have
eclipse set up its a lot to go through to explain how but you can
visit the android sdk site for detailed instructions on how to it all


audio flinger :(

by schwiz » Mon, 07 Sep 2009 08:57:56 GMT

 also, you can search logcat on the market and there is an app called
logcollector that will email the log to you , doesn't require root


Other Threads

1. "Finish" Activity from Dialog.. Not finishing


Requirement : Is to show a warning dialog to the user when phone
powers up and that should be the first screen on the phone after power

I have a stand alone app with a activity and that activity has a
Dialog  with "OK" button to show up on the phone power up. And this
app has the highest priority. I can see the activity getting started
on the power up.

The problem i am facing is :

When i press "OK" on the dialog the, dialog disappears but the
activity remains on the screen. I have finish() called in the onclick
of OK but still the activity remains on the screen.

Pls do let me know how to resolve this problem,

My code is as below :

public class Warning extends Activity implements OnClickListener{
         AlertDialog alert_new;
          boolean warningShown = false;

    public void onCreate(Bundle savedInstanceState) {

       if(warningShown == false){


    protected Dialog onCreateDialog(int id) {

        if(id == 1){
                   AlertDialog.Builder alert = new AlertDialog.Builder(this);

               alert.setPositiveButton("OK", new
DialogInterface.OnClickListener() {
                  public void onClick(DialogInterface dialog, int
whichButton) {


                alert_new = alert.create();
                return alert_new;



Manifest file contains the below code to make it high priority :

<intent-filter android:priority="300">
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.HOME" /
android:name="android.intent.category.DEFAULT" />




2. im building a new device

hey guys im new to android
im building a new device (tablet)
i need to know how to make android run on my device.. please help


3. How to retrieve value from onItemClick(AdapterView)?

4. import protected static interface

5. On-the-fly decryption of large files

6. Android activity forces close.

7. mysterious crash accessing Preferences - works if package name is changed