Quantcast
Channel: Appcelerator Developer Center Q&A Tag Feed (android)
Viewing all articles
Browse latest Browse all 7655

Android black screen after resume

$
0
0

This app sometimes display a black screen after a resume. It freezes there and after a few seconds "This app does not respond. Restart?"

It doesn't happen every time. Factors that seam to make it happen more is if I press home, start a bunch of other apps to eat up memory, then resume. After I activated "Do not keep activities" in developer options it happened more frequent.

Titanium sdk: 3.1.3 Android: 4.0.4, 4.1.2 and others. Tested on several devices.

I've read that this have been an issue for quite some time.

I have tried:

  • Adding <property name="ti.android.root.reappears.restart" type="bool">true</property> in tiapp.xml
  • Adding android:alwaysRetainTaskState="true" in AndroidManifest.xml

The android console says this when it happens:

10-16 11:11:55.507: E/TiApplication(15607): (main) [1280,1751] Sending event: exception on thread: main msg:java.lang.RuntimeException: Unable to resume activity {com.myapp.myapp/org.appcelerator.titanium.TiActivity}: java.lang.NullPointerException; Titanium 3.1.3,2013/09/18 12:01,222f4d1
 
10-16 11:11:55.507: E/TiApplication(15607): java.lang.RuntimeException: Unable to resume activity {com.myapp.myapp/org.appcelerator.titanium.TiActivity}: java.lang.NullPointerException
Any suggestions?

Viewing all articles
Browse latest Browse all 7655

Trending Articles