0

Hey guys I simply want to downgrade my api level 8 to 7 so that i can run the application both on 2.2 and 2.1 devices. The application is running perfectly fine on 2.2 and is having problem working on 2.1

I have done changes in manifest.xml and project -> properties

My application basically uses sax parser , facebook sdk , twitter connect

This is the log cat:

03-05 12:32:13.553: WARN/dalvikvm(232): threadid=3: thread exiting with uncaught exception (group=0x4001b188)
03-05 12:32:13.563: ERROR/AndroidRuntime(232): Uncaught handler: thread main exiting due to uncaught exception
03-05 12:32:13.623: ERROR/AndroidRuntime(232): java.lang.NullPointerException
03-05 12:32:13.623: ERROR/AndroidRuntime(232):     at com.test.activity.MyActivity$FetchTopMusic.onPostExecute(MusicScreen.java:161)
03-05 12:32:13.623: ERROR/AndroidRuntime(232):     at com.test.activity.MyActivity$FetchTopMusic.onPostExecute(MusicScreen.java:1)
03-05 12:32:13.623: ERROR/AndroidRuntime(232):     at android.os.AsyncTask.finish(AsyncTask.java:417)
03-05 12:32:13.623: ERROR/AndroidRuntime(232):     at android.os.AsyncTask.access$300(AsyncTask.java:127)
03-05 12:32:13.623: ERROR/AndroidRuntime(232):     at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:429)
03-05 12:32:13.623: ERROR/AndroidRuntime(232):     at android.os.Handler.dispatchMessage(Handler.java:99)
03-05 12:32:13.623: ERROR/AndroidRuntime(232):     at android.os.Looper.loop(Looper.java:123)
03-05 12:32:13.623: ERROR/AndroidRuntime(232):     at android.app.ActivityThread.main(ActivityThread.java:4363)
03-05 12:32:13.623: ERROR/AndroidRuntime(232):     at java.lang.reflect.Method.invokeNative(Native Method)
03-05 12:32:13.623: ERROR/AndroidRuntime(232):     at java.lang.reflect.Method.invoke(Method.java:521)
03-05 12:32:13.623: ERROR/AndroidRuntime(232):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860)
03-05 12:32:13.623: ERROR/AndroidRuntime(232):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
03-05 12:32:13.623: ERROR/AndroidRuntime(232):     at dalvik.system.NativeStart.main(Native Method)

And i get this message after the splash screen. Music Screen has async task which is calling various classes in various packages for parsing the xml content. Is this a problem in xml parser??

The line 161 is :- for (int i = 0; i < tracks.size(); i++)

Where tracks is an arrayList and all this code is working fine in 2.2

Shade
  • 9,936
  • 5
  • 60
  • 85
abhishek
  • 1,434
  • 7
  • 39
  • 71
  • long blocks of code/log output are more easily read if they are marked as 'code' (from the formatting menu). – Shade Mar 05 '11 at 16:34

1 Answers1

0

Have you checked in the default properties and set the target to 7? Then check whether it is possible or not.

Let me know...

Conner
  • 30,144
  • 8
  • 52
  • 73
Sumant
  • 2,775
  • 2
  • 22
  • 30
  • hey thanks for rep. Yes my default properties file has target set to 7. This is how it looks :- target=android-7 android.library.reference.1=../facebook-facebook-android-sdk-c3ad0db/facebook/ – abhishek Mar 05 '11 at 11:49
  • is it possible to send pro i wll check out on sumant4943@gmail.com & wll get back to u – Sumant Mar 05 '11 at 11:52
  • i send u an invite at gmail. We can do a teamviewer session. Please i will highly appreciate this . Thanks – abhishek Mar 05 '11 at 11:54