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.


Other Threads

1. Are there alternate ways to look up user phone number when TelephonyManager returns null?

Is there a way to look up the user phone number other than TelephonyManager?

In my G1, this returns null:

// get your phone number
        TelephonyManager telephonyManager = (TelephonyManager)
        String tel = telephonyManager.getLine1Number();

        Log.i("Telephone Number ==> ", tel+" <==");

Is there any other way of getting user's own phone number?

take care,
Muthu Ramadoss.

http://androidrocks.googlecode.com - Android Consulting.

Emo Philips <http://www.brainyquote.com/quotes/authors/e/emo_philips.html>
- "A computer once beat me at chess, but it was no match for me at


2. Multipat messages.


I am trying to upload a file using multipart HTTP POST. I am using the
same method being used in thread

3. surface flinger framework and issues

4. Is There Ever Going to be a Google Chrome Mobile for Android?

5. Experience of using admob

6. Zealots (WAS Unacceptable and abusive comments needs immediate solution from Google)

7. Exceptions was: Exception locking surface - lockCanvas() returns a null?