cgroup errors?

by DJ_Steve » Tue, 29 Jun 2010 04:49:48 GMT


Sponsored Links
 elo, wondering if anyone has any ideas how to get rid of the tons of
errors i have like below::

I/ActivityManager( 540): moveTaskToBack: 4
W/SchedPolicy( 540): add_tid_to_cgroup failed to write
'665' (Permission denied); background=0
W/ActivityManager( 540): Failed setting process group of 665 to 0
W/System.err( 540): java.lang.SecurityException: No permission to set
to given group
W/System.err( 540): at android.os.Process.setProcessGroup(Native
Method)
W/System.err( 540): at
com.android.server.am.ActivityManagerService.updateOomAdjLocked(ActivityManagerService.java:
14254)
W/System.err( 540): at
com.android.server.am.ActivityManagerService.updateOomAdjLocked(ActivityManagerService.java:
14341)
W/System.err( 540): at
com.android.server.am.ActivityManagerService.updateLruProcessInternalLocked(ActivityManagerService.java:
1675)
W/System.err( 540): at
com.android.server.am.ActivityManagerService.updateLruProcessInternalLocked(ActivityManagerService.java:
1659)
W/System.err( 540): at
com.android.server.am.ActivityManagerService.updateLruProcessInternalLocked(ActivityManagerService.java:
1667)
W/System.err( 540): at
com.android.server.am.ActivityManagerService.updateLruProcessLocked(ActivityManagerService.java:
1682)
W/System.err( 540): at
com.android.server.am.ActivityManagerService.resumeTopActivityLocked(ActivityManagerService.java:
2741)
W/System.err( 540): at
com.android.server.am.ActivityManagerService.completePauseLocked(ActivityManagerService.java:
2236)
W/System.err( 540): at
com.android.server.am.ActivityManagerService.activityPaused(ActivityManagerService.java:
5962)
W/System.err( 540): at
com.android.server.am.ActivityManagerService.activityPaused(ActivityManagerService.java:
5940)
W/System.err( 540): at
android.app.ActivityManagerNative.onTransact(ActivityManagerNative.java:
387)
W/System.err( 540): at
com.android.server.am.ActivityManagerService.onTransact(ActivityManagerService.java:
1480)
W/System.err( 540): at android.os.Binder.execTransact(Binder.java:
288)
W/System.err( 540): at dalvik.system.NativeStart.run(Native
Method)
W/InputManagerService( 540): Window already focused, ignoring focus
gain of: com.android.internal.view.IInputMethodClient$Stub
$pr...@4401eeb8
W/SchedPolicy( 540): add_tid_to_cgroup failed to write
'916' (Permission denied); background=1
W/ActivityManager( 540): Failed setting process group of 916 to 1
W/System.err( 540): java.lang.SecurityException: No permission to set
to given group
W/System.err( 540): at android.os.Process.setProcessGroup(Native
Method)
W/System.err( 540): at
com.android.server.am.ActivityManagerService.updateOomAdjLocked(ActivityManagerService.java:
14254)
W/System.err( 540): at
com.android.server.am.ActivityManagerService.updateOomAdjLocked(ActivityManagerService.java:
14341)
W/System.err( 540): at
com.android.server.am.ActivityManagerService.trimApplications(ActivityManagerService.java:
14413)
W/System.err( 540): at
com.android.server.am.ActivityManagerService.activityIdleInternal(ActivityManagerService.java:
5863)
W/System.err( 540): at
com.android.server.am.ActivityManagerService.activityIdle(ActivityManagerService.java:
5683)
W/System.err( 540): at
android.app.ActivityManagerNative.onTransact(ActivityManagerNative.java:
377)
W/System.err( 540): at
com.android.server.am.ActivityManagerService.onTransa



Other Threads

1. How to get SMS message ID

I have this code from an SMS receiver.  How do I get the:
1.  Message ID (_id)
2. Thread ID(thread_Id)
 
     public void onReceive(Context context, Intent intent)
     {
       Bundle bundle = intent.getExtras();
       if(bundle != null)
       {
        Object[] pdus =(Object[])bundle.get("pdus");
        SmsMessage[] messages = new SmsMessage[pdus.length];
        
        for(int i=0; i < pdus.length; i++ )
         messages[i] = SmsMessage.createFromPdu((byte[]) pdus[i]);
        
        for(SmsMessage message : messages)
        {
         int msgId     = >>> how do you do this here???
         String msg   =  message.getMessageBody();
         String from  =  message.getOriginatingAddress();
         }
        ...       
       }
 
thanks in advance.
 
Eric

--~--~---------~--~----~------------~-------~--~----~

2. MediaPlayer playback is interrupted by user interface interaction

I have a rather mysterious problem with the simple test application
below...

package com.example.helloandroid;

import android.app.Activity;
import android.media.MediaPlayer;
import android.os.Bundle;
import android.widget.ArrayAdapter;
import android.widget.LinearLayout;
import android.widget.ListView;
import android.widget.TextView;

public class HelloAndroid extends Activity {
    static final String[] LIST_ITEMS = new String[] {
        "Item 1",
        "Item 2",
        "Item 3",
        "Item 4",
        "Item 5",
        etc etc...
    };

    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        final LinearLayout root = new LinearLayout(this);
        root.setOrientation(LinearLayout.VERTICAL);

        final TextView tv = new TextView(this);

        final ListView lv = new ListView(this);
        lv.setAdapter(new ArrayAdapter<String>(this,
android.R.layout.simple_list_item_1, LIST_ITEMS));

        root.addView(tv);
        root.addView(lv);

        MediaPlayer mp = new MediaPlayer();
        String msg = "";

        try {
            String path = "/sdcard/MP3/an_mp3_track.MP3";

            mp.setDataSource(path);
            mp.prepare();
            mp.start();
        }
        catch (Exception e) {
                msg = e.getClass().getName();
        }

        tv.setText(msg);

        setContentView(root);
    }
}


As you might see from examining the code, it sets up a very simple
layout, consisting of a TextView to display a text message above a
ListView displaying a number of strings. The application also
instantiates a MediaPlayer and begins playback of an mp3 track on the
SD card. So far everything works; the interface will be displayed
correctly and playback of the track will begin... and left on its own
it will keep working. However, if you start fiddling with the ListView
- scrolling it or tapping its items, for example - it may cause the
mp3 playback to suddenly be interrupted, for no apparent reason
whatsoever. The interruption doesn't seem to be caused by a standard
MediaPlayer error, as I've tried registering an OnErrorListener to the
media player and its methods don't seem to be called at the
interruption. I'm running the application on my retail HTC Hero.

I'm very new to Android development so it's entirely possible that I'm
overlooking something many would consider obvious; however the
symptoms of the problem seem to suggest otherwise: this behaviour is
just weird. Why should user interface components interfere in any way
with a media player, unless designed to do so?

Thankful for any suggestions,

Ludvig Svenonius

--~--~---------~--~----~------------~-------~--~----~

3. Disabling the Camera Flash

4. How to capture any screen? (when your view is greater than screen size)

5. no activity in project

6. TDD

7. How to force a GSM call to be handled by the native dialer?