- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
A customer reported me a crash on a webapp I built, it was happening only if the app was started helding the device in landscape and no error messages were given at all.
Device is an Android tablet, but this doesn't happen on every device (my Galaxy S3 starts the app in any orientation without any error)
Analyzing the bug report it happens I forgot to include some splash screens inside the project configuration window, no errors or warnings were shown during the build process. I just built the app with the default app.js file, adding my logic inside separate scripts.
Could it be a good idea to set a fallback to a default balck screen or give the developer a warning if some splash screens are missing?
Expecially cause the relative behaviour is not just to start without a splash screen but actually a total crash of the app
- Tags:
- HTML5
- Intel® XDK
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
If you forgot to provide a splash screen XDK provides a default splash screen. That should not be the cause of crash. There could be some other issue. Please send us the log.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Just a note, I forgot to just some of the sizes for splashscreens, some of them where set, if it helps :D
Here is the bug report sent to google by the device (I put *** on names just for customer privacy) :
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.****.***/com.****.***.CordovaApp}: android.content.res.Resources$NotFoundException: Resource ID #0x7f020001 at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2307) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2365) at android.app.ActivityThread.access$800(ActivityThread.java:164) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1258) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:157) at android.app.ActivityThread.main(ActivityThread.java:5350) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:515) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1265) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1081) at dalvik.system.NativeStart.main(Native Method) Caused by: android.content.res.Resources$NotFoundException: Resource ID #0x7f020001 at android.content.res.Resources.getValue(Resources.java:2009) at android.content.res.Resources.getDrawable(Resources.java:1584) at android.view.View.setBackgroundResource(View.java:16144) at org.apache.cordova.CordovaActivity$5.run(CordovaActivity.java:947) at android.app.Activity.runOnUiThread(Activity.java:4901) at org.apache.cordova.CordovaActivity.showSplashScreen(CordovaActivity.java:970) at org.apache.cordova.CordovaActivity.loadUrl(CordovaActivity.java:368) at com.****.***.CordovaApp.onCreate(CordovaApp.java:33) at android.app.Activity.performCreate(Activity.java:5428) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1105) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2271)

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page