Discussion Forums  >  Crashes, Memory Warnings

Replies: 0    Views: 223

Worker73
Android Fan
Profile
Posts: 419
Reg: Feb 06, 2012
Austria, Klagen...
4,490
04/28/14 06:20 AM (5 years ago)

Android App Crashes on opening PushMessage (Parse.COM)

Hi Folks....

I have an Android 3.0 (Self Hosted) App and it works....
But, when i send an PushMessage (With Parse) to the App, the App crahes when the User touches the PushMessage to open the App.. ;-(

Ive tryed to insert the ParseCode to this Files..
MYAPP_appDelegate.java
BT_activity_host.java
and
BT_activity_start.java..

My LogCat says:

java.lang.RuntimeException: Unable to start activity ComponentInfo{com.MYAPP/com.MYAPP.BT_activity_host}: java.lang.IndexOutOfBoundsException: Invalid index 0, size is 0
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2245)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2295)
at android.app.ActivityThread.access$700(ActivityThread.java:150)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1280)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:175)
at android.app.ActivityThread.main(ActivityThread.java:5279)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1102)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:869)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.IndexOutOfBoundsException: Invalid index 0, size is 0
at java.util.ArrayList.throwIndexOutOfBoundsException(ArrayList.java:251)
at java.util.ArrayList.get(ArrayList.java:304)
at com.MYAPP.BT_application.getHomeScreenData(BT_application.java:472)
at com.MYAPP.BT_activity_host.setupTabs(BT_activity_host.java:390)
at com.MYAPP.BT_activity_host.configureEnvironment(BT_activity_host.java:355)
at com.MYAPP.BT_activity_host.onCreate(BT_activity_host.java:131)
at android.app.Activity.performCreate(Activity.java:5283)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1097)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2209)
... 11 more

Does anyone have an Idea where the Problem can be?

Thanks for your time...
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.