Null Pointer exception means exactly that. Somehow, a variable was declared, initialized only to null and the referenced. Take a look at the whole stack trace (use logcat for this) and see a) what method threw the exception and b) which method of yours is in the stack. 99% of the time that is where the error is.
On Apr 17, 2:13 pm, Kamal <kamalgupta...@gmail.com> wrote: > Hi > > I am a beginner. I wrote an application for Android 2.3 which was > running alright. I need to modify it to make it work for 2.2 as well. > I know apps are not backward compatible. When I made a new project for > API 2.2 and copy-pasted java files from my original app, it shows run- > time error (on emulator) - java.lang.NullPointerException right from > the beginning of first activity. > > Can someone give me any idea how to proceed? > > Thanks > Kamal -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en