Randomly closing app - Input Manager -

by Genc » Wed, 07 Jul 2010 06:40:50 GMT

Sponsored Links
 Hi all,

I've a very simple 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.

Any help is appreciated.

Thanks in advance.


Randomly closing app - Input Manager -

by TreKing » Fri, 09 Jul 2010 00:26:04 GMT


These are the worst issues. I would throw a ton of logging in there every
step of the way and see how far you get before you it craps out. Then add
more detailed logging around the point that it fails. Rinse and repeat until
you come to some conclusion.

TreKing - Chicago transit tracking app for Android-powered devices


Sponsored Links

Randomly closing app - Input Manager -

by Genc » Thu, 15 Jul 2010 05:06:21 GMT

 Hi TreKing,

Thanks for interest. I've sorted it out:

The problem that I was drawing on canvas from within 2 different

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

Removing canvas access from within onTouchEvent(main app thread)
solved the problem.

Thanks again.

Kind regards.