Oh: and when you "copy-pasted java files", what did you do with AndroidManifest.xml? You can't just copy that from the 2.2 project too. You need to set android:minSDKVersion to 8, not 9 for 2.2. That will also give you better warning/error message to find what else you have to change.
On Apr 17, 2:13 pm, Kamal <[email protected]> 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 [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

