views:

27

answers:

2

I've a very simple Android app, similar to fingerpaint application. I'm drawing some lines on the screen with my finger.

My problem is that, app closes itself randomly, taking me back to Android home screen.

Only log I can see on LogCat is that line:

(Warning) Tag: InputManagerService: Got RemoteException sending setActive(false) notification to pid 4962 uid 10077.

No exception is thrown.

I've tried compiling project against Android 2.0, 2.1 and 2.2...

I've tried disabling debuggable attribute in manifest.

I'm having this problem on both Nexus One and 2.2 Emulator.

A: 

I have this problem as well. Would appreciate help with it.

08-29 15:58:30.909: INFO/ActivityManager(1104): Process com.wwnd.netmapper (pid 10272) has died.
08-29 15:58:30.941: DEBUG/Zygote(1012): Process 10272 terminated by signal (11)
08-29 15:58:30.941: INFO/WindowManager(1104): WIN DEATH: Window{44cd8160 com.wwnd.netmapper/com.wwnd.netmapper.NetMapperMainAct paused=false}
08-29 15:58:31.034: INFO/WindowManager(1104): WIN DEATH: Window{44bd5e98 com.wwnd.netmapper/com.wwnd.netmapper.NetMapperMainAct paused=false}
08-29 15:58:31.167: INFO/UsageStats(1104): Unexpected resume of com.android.launcher while already resumed in com.wwnd.netmapper
08-29 15:58:31.231: WARN/InputManagerService(1104): Got RemoteException sending setActive(false) notification to pid 10272 uid 10021
Nick
A: 

My problem was drawing on Canvas object from 2 different threads.

I was playing around Android's FingerPaint.java SDK sample and it's accessing Canvas within onTouchEvent. However I was also using SurfaceView and drawing on Canvas within my animation thread.

Therefore removing Canvas object access from onTouchEvent(main app thread) solved my problem.

Thanks.

Genc
Thanks.thats definitely not my problem. I'm noticing it happen more often when the progress dialog closes.
Nick