DalvikVm crash While starting Wifi service

by >> JJ » Tue, 30 Dec 2008 21:30:14 GMT


Sponsored Links
 i all,

Could some one help me with the below error logs.. I am running
Android on a PXA platform with a custom wifi driver. when I try to
invoke Wifi Manager from settings, the GUI crashes. I am attaching the
logs below..

Thanks in Advance..
--------------------------------------------------------------------------------------

I/ActivityManager( 713): Starting activity: Intent {

action=android.intent.action.MAIN comp=

{com.android.settings/com.android.settings.wifi.WifiSettings} }
V/WifiMonitor( 713): Event [CTRL-EVENT-STATE-CHANGE id=-1 state=2]
V/WifiStateTracker( 713): Changing supplicant state: INACTIVE ==>
SCANNING
D/SettingsWifiEnabler( 882): Received wifi state changed from
Enabling to

Enabled
I/ActivityManager( 713): Displayed activity

com.android.settings/.wifi.WifiSettings: 369 ms
V/WifiMonitor( 713): Event [CTRL-EVENT-SCAN-RESULTS Ready]
D/LocationManagerService( 713): NetworkStateBroadcastReceiver: WiFi
debug

point 1
W/dalvikvm( 713): threadid=15: thread exiting with uncaught
exception

(group=0x40013e28)
E/AndroidRuntime( 713): Uncaught handler: thread
android.server.ServerThread

exiting due to uncaught exception
E/AndroidRuntime( 713): *** EXCEPTION IN SYSTEM PROCESS. System will
crash.
E/AndroidRuntime( 713): java.lang.RuntimeException: Error receiving
broadcast

Intent { action=android.net.wifi.SCAN_RESULTS } in

com.android.server.LocationManagerService
$networkstatebroadcastrecei...@435c8a

90
E/AndroidRuntime( 713): at

android.app.ActivityThread$PackageInfo$ReceiverDispatcher$Args.run

(ActivityThread.java:667)
E/AndroidRuntime( 713): at android.os.Handler.handleCallback

(Handler.java:542)
E/AndroidRuntime( 713): at android.os.Handler.dispatchMessage

(Handler.java:86)
E/AndroidRuntime( 713): at android.os.Looper.loop(Looper.java:
123)
E/AndroidRuntime( 713): at com.android.server.ServerThread.run

(SystemServer.java:313)
E/AndroidRuntime( 713): Caused by:
java.lang.IllegalArgumentException:

key.length > 31
E/AndroidRuntime( 713): at android.os.SystemProperties.get

(SystemProperties.java:42)
E/AndroidRuntime( 713): at

com.android.internal.location.LocationCollector.isCollectionEnabled

(LocationCollector.java:360)
E/AndroidRuntime( 713): at

com.android.internal.location.LocationCollector.updateWifiScanResults

(LocationCollector.java:259)
E/AndroidRuntime( 713): at

com.android.server.LocationManagerService
$NetworkStateBroadcastReceiver.onRece

ive(LocationManagerService.java:1540)
E/AndroidRuntime( 713): at

android.app.ActivityThread$PackageInfo$ReceiverDispatcher$Args.run

(ActivityThread.java:656)
E/AndroidRuntime( 713): ... 4 more
I/Process ( 713): Sending signal. PID: 713 SIG: 9
I/ServiceManager( 652): service 'SurfaceFlinger' died
I/ActivityThread( 863): Removing dead content provider: settings
I/ActivityThread( 781): Removing dead content provider: settings
I/ActivityThread( 773): Removing dead content provider: settings
I/ServiceManager( 652): service 'power' died
I/ServiceManager( 652): service 'telephony.registry' died
I/ServiceManager( 652): service 'package' died
I/ServiceManager( 652): service 'activity' died
I/ServiceManager( 652): service 'batteryinfo' died
I/ServiceManager( 652): service 'meminfo' died
I/ServiceManager( 652): service 'content' died
I/ServiceManag



Other Threads

1. A question about "sample sync adapter" of developer.android.com

Hi!

This is a question about "sample sync adapter" of
developer.android.com.
(You can find it as searching by "sample sync adapter" on
developer.android.com)

I don't know what "contacts.xml" is for.
(res/xml/contacts.xml)

Though I removed that xml file from my application, the sync adapter
worked and the user could add new account.

Is it mandatory?



Thank you.
Have a nice day.



-- 

2. Correct way of making a simple "talking parrot" app

Is the following code (especially the listen() function) a proper way
to do it? I'm not exactly happy with the sound quality I get from
it... thanks for your help/comments in advance!

Marko

------

public class Main extends Activity {

    private volatile Thread listener;

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        listen();
    }

    @Override
    protected void onPause() {
        super.onPause();
        stopListen();
    }

    private void listen() {
        listener = new Thread() {
            @Override
            public void run() {
                Thread thisThread = Thread.currentThread();
 
android.os.Process.setThreadPriority(android.os.Process.THREAD_PRIORITY_URGENT_AUDIO);

                int bufferRead = 0;
                int bufferSize = AudioRecord.getMinBufferSize(8000,
AudioFormat.CHANNEL_CONFIGURATION_MONO,
AudioFormat.ENCODING_PCM_16BIT);
                short[] tempBuffer = new short[bufferSize];

                AudioRecord ar = new
AudioRecord(MediaRecorder.AudioSource.MIC, 8000,
AudioFormat.CHANNEL_CONFIGURATION_MONO,
AudioFormat.ENCODING_PCM_16BIT, bufferSize);
                ar.startRecording();

                AudioTrack at = new
AudioTrack(AudioManager.STREAM_MUSIC, 8000,
AudioFormat.CHANNEL_CONFIGURATION_MONO,
AudioFormat.ENCODING_PCM_16BIT, bufferSize * 2,
AudioTrack.MODE_STREAM);
                at.play();

                while (true) {
                    if (listener != thisThread) {
                        ar.stop();
                        ar.release();
                        at.stop();
                        at.release();
                        break;
                    }
                    bufferRead = ar.read(tempBuffer, 0, bufferSize);
                    at.write(tempBuffer, 0, bufferRead);
                }

            }
        };
        listener.start();
    }

    private void stopListen() {
        listener = null;
    }
}

-- 

3. Screen flickering issue in Launcher App

4. recover ur formated data

5. List View : text on left and right not working

6. how to merge an array of bitmap together in one bitmap ?

7. Does Android allow application to specify which wifi channel to use?