01-31 17:02:14.526: ERROR/AndroidRuntime(311): Uncaught handler: thread main exiting due to uncaught exception 01-31 17:02:14.545: ERROR/AndroidRuntime(311): java.lang.NullPointerException 01-31 17:02:14.545: ERROR/AndroidRuntime(311): at com.hungama.myplay.activity.MusicScreen$FetchTopMusic.onPostExecute(MusicScreen.java:155) 01-31 17:02:14.545: ERROR/AndroidRuntime(311): at com.hungama.myplay.activity.MusicScreen$FetchTopMusic.onPostExecute(MusicScreen.java:1) 01-31 17:02:14.545: ERROR/AndroidRuntime(311): at android.os.AsyncTask.finish(AsyncTask.java:417) 01-31 17:02:14.545: ERROR/AndroidRuntime(311): at android.os.AsyncTask.access$300(AsyncTask.java:127) 01-31 17:02:14.545: ERROR/AndroidRuntime(311): at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:429) 01-31 17:02:14.545: ERROR/AndroidRuntime(311): at android.os.Handler.dispatchMessage(Handler.java:99) 01-31 17:02:14.545: ERROR/AndroidRuntime(311): at android.os.Looper.loop(Looper.java:123) 01-31 17:02:14.545: ERROR/AndroidRuntime(311): at android.app.ActivityThread.main(ActivityThread.java:4363) 01-31 17:02:14.545: ERROR/AndroidRuntime(311): at java.lang.reflect.Method.invokeNative(Native Method) 01-31 17:02:14.545: ERROR/AndroidRuntime(311): at java.lang.reflect.Method.invoke(Method.java:521) 01-31 17:02:14.545: ERROR/AndroidRuntime(311): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860) 01-31 17:02:14.545: ERROR/AndroidRuntime(311): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618) 01-31 17:02:14.545: ERROR/AndroidRuntime(311): at dalvik.system.NativeStart.main(Native Method)
On Mon, Jan 31, 2011 at 5:11 PM, Kostya Vasilyev <[email protected]> wrote: > Please post complete logcat error stack trace, including below "Caused > by:" > > -- Kostya > > 31.01.2011 14:34, Robin Talwar пишет: > > Caused due to Null Pointer Exception but the same code runs on 2.2 so it is > quite wierd > I have async task in my application to show progress dialog while the app > is parsing xml by the time > > On Mon, Jan 31, 2011 at 4:59 PM, Kostya Vasilyev <[email protected]>wrote: > >> And the logcat says? >> >> 31.01.2011 14:27, Robin Talwar пишет: >> >> I am using fill_parent >> >> >> On Mon, Jan 31, 2011 at 4:27 PM, David Erosa García <[email protected]>wrote: >> >>> On Mon, Jan 31, 2011 at 11:56 AM, David Erosa García <[email protected]> >>> wrote: >>> > On Mon, Jan 31, 2011 at 11:04 AM, Robin Talwar >>> > <[email protected]> wrote: >>> >> Ok now i have added a splash screen. >>> >> The Splash screen works fine but then the activity which is to list >>> the xml >>> >> parsed data is showing the force close error in 2.1 >>> >> and i working fine in 2.2 where could i possibly be wrong >>> > >>> > Maybe you are using "match_parent" on your xml and that's why it works >>> > in 2.2 and FC in 2.1? >>> >>> Your layout's xml, I mean. >>> >>> > >>> >> >>> >> On Sat, Jan 29, 2011 at 5:49 PM, David Erosa García < >>> [email protected]> >>> >> wrote: >>> >>> >>> >>> On Sat, Jan 29, 2011 at 12:36 PM, Robin Talwar >>> >>> <[email protected]> wrote: >>> >>> > Yes i have done everything >>> >>> > now if i run the build on 2.1 it says "Android Library project >>> could not >>> >>> > be >>> >>> > launched" >>> >>> >>> >>> Check the project properties. It looks like you have checked the "Is >>> >>> library" checkbox. >>> >>> >>> >>> > >>> >>> > On Sat, Jan 29, 2011 at 3:16 PM, Marcin Orlowski >>> >>> > <[email protected]> >>> >>> > wrote: >>> >>> >> >>> >>> >> > May be i messed up something in the process of converting it to >>> 2.1 >>> >>> >> > I have navigated to android tools -> Fix Project Properties and >>> set >>> >>> >> > the api level >>> >>> >> > Changed it manually in androidManifest but still it is giving me >>> the >>> >>> >> > Null Pointer Exception >>> >>> >> > What could possibly be left out >>> >>> >> >>> >>> >> If your code is not using 2.2 features then it's just matter of >>> >>> >> setting targetSdk as low as you can and rebuilding your project >>> (would >>> >>> >> clear project "just in case" myself). So if it now crashes it may >>> be >>> >>> >> just bug in your code. Debug it as such. Or check logs and >>> stacktrace >>> >>> >> you get on crash. >>> >>> >> >>> >>> >> -- >>> >>> >> 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 >>> >>> > >>> >>> > -- >>> >>> > 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 >>> >>> >>> >>> -- >>> >>> 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 >>> >> >>> >> -- >>> >> 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 >>> > >>> >>> -- >>> 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 >>> >> >> -- >> 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 >> >> >> >> -- >> Kostya Vasilyev -- WiFi Manager + pretty widget -- >> http://kmansoft.wordpress.com >> >> -- >> 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 >> > > -- > 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 > > > > -- > Kostya Vasilyev -- WiFi Manager + pretty widget -- > http://kmansoft.wordpress.com > > -- > 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 > -- 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

