Thanks for such a response On Sun, Nov 21, 2010 at 12:09 AM, Mark Murphy <[email protected]>wrote:
> You are trying to call a method on a null object on line 232 of > AnaFain.java. > > in this line of code I call guiHandler.post(noConnectionAlert); noConnectionAlert is a runnable i declared above in the code,,,and if that why it sometimes working fine and sometimes not ?? &Why just after terminating the application this occurs,,however if I waited for seconds it will work normally ??? On Sat, Nov 20, 2010 at 5:05 PM, tarek attia <[email protected]> > wrote: > > Hi all, > > I have an application which has a thread inside,this thread calls > > handler.post ,however if the application is just turned off then be > opened > > again I got this message on the log cat > > 11-20 23:28:23.736: WARN/InputManagerService(76): Window already focused, > > ignoring focus gain of: > > com.android.internal.view.iinputmethodclient$stub$pr...@43304038 > > 11-20 23:28:26.976: INFO/ActivityManager(76): Starting activity: Intent { > > act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] > > flg=0x10200000 cmp=connectIt.com.Tracker/.AnaFain } > > 11-20 23:28:27.156: WARN/System.err(530): java.lang.NullPointerException > > 11-20 23:28:27.166: WARN/System.err(530): at > > connectIt.com.Tracker.AnaFain$6.run(AnaFain.java:232) > > 11-20 23:28:27.166: WARN/System.err(530): at > > java.lang.Thread.run(Thread.java:1060) > > 11-20 23:28:27.426: WARN/InputManagerService(76): Starting input on > > non-focused client > > com.android.internal.view.iinputmethodclient$stub$pr...@4324fad0(uid=10010 > > pid=124) > > However if I waited for couple of seconds I might not see this on the > > logcat > > Any suggestions ??? > > > > -- > > tarek > > > > -- > > You received this message because you are subscribed to the Google > > Groups "Android Developers" group. > > To post to this group, send email to [email protected] > > To unsubscribe from this group, send email to > > [email protected]<android-developers%[email protected]> > > For more options, visit this group at > > http://groups.google.com/group/android-developers?hl=en > > > > -- > Mark Murphy (a Commons Guy) > http://commonsware.com | http://github.com/commonsguy > http://commonsware.com/blog | http://twitter.com/commonsguy > > _The Busy Coder's Guide to Android Development_ Version 3.2 Available! > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected]<android-developers%[email protected]> > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en -- tarek -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

