Software Archive
Read-only legacy content
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
17060 Discussions

Missing Splash Asset BUG / SUGGESTION

Dario_C_
Beginner
453 Views

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

 

0 Kudos
2 Replies
Swati_S_Intel1
Employee
453 Views

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.

0 Kudos
Dario_C_
Beginner
453 Views

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)

 

0 Kudos
Reply