Thursday, 15 August 2013

android - App crashes when bringing the app to foreground while playing high memory games -


I have a bizarre problem with my app

When I use high memory consumption games like applet 8 I play, my app moves from the background to the foreground, the app crashes This is when I play high memory app like Asphalt 8 . Crashing is because the activity references to zero

I do not know how to fix it.

UPDATE

Logcat:

  7927-7927 / com.xxxxx.android .beta e / androidtimeTime: False upstation: main process: com.xxxxxx.android.beta, PID: 7927 Java. lang.RuntimeException: unable to start activity ComponentInfo {com.xxxxxx.android.beta / com.xxxxxxxxx.android.Login.InitialScreen}: java.lang.NullPointerException: 'java.lang.Object android to call virtual method .content attempts Context.getSystemService (java.lang.String) 'The reference to android.app.ActivityThread.performLaunchActivity (ActivityThread.java:2314) on android.app.ActivityThread.handleLaunchActivity (ActivityThread.java:2388) on a null object android.app .ActivityThread.access $ 800 (ActivityThread.java:148) android.os.Looper at $ H.handleMessage (ActivityThread.java:1292) android.os.Handler.dispatchMessage on android.app.ActivityThread (handler Java.10) .loop (Looper.java:135) on android.app.ActivityThread.main (ActivityThread.java:5312) (Basic Law on java.lang.reflect.Method.invoke) .lang.reflect.Method.invoke (method on java .java: 372) caused by com.android.internal.os.ZygoteInit $ MethodAndArgsCaller.run (ZygoteInit.java:901) on com.android.internal.os.ZygoteInit.main (ZygoteInit .java: 696): java. Lang.NullPointerException: Virtual Method 'java.lang Attempting to launch 'object android.content.Context.getSystemService (java.lang.String)'. On a blank object reference at Comxxxxxxxx. android.Login.SwipeFragment_Second.onCreateView (SwipeFragment_Second.java:42) android.support.v4.app.Fragment.performCreateView (Fragment.java:1786) on android.support.v4.app.FragmentManagerImpl.moveToState (on FragmentManager.java: 9, 47) on android.support.v4.app.FragmentManagerImpl.moveToState (piece Mandkkjawat 126) android.support.v4.app.FragmentManagerImpl.moveToState (FragmentManager.java:1108) android.support.v4.app.FragmentManagerImpl. .onStart android.app.Instrumentation.callActivityOnStart (Instrumentation.java:1243) android.app.Activity.performStart (Activity.java:5969) on dispatchActivityCreated (FragmentManager.java:1917) android.support.v4.app.FragmentActivity on android.app.ActivityThread.performLaunchActivity (FragmentActivity.java:544) (ActivityThread. Java: 2277) android.app.ActivityThread.handleLaunchActivity (ActivityTh on android.app.ActivityThread $ H.handleMessage read.java:2388) on android.app.ActivityThread.access $ 800 (ActivityThread.java:148) (on ActivityThread.java: 1292) on android.os.Handler.dispatchMessage (handler. Java: 102) android.os.Looper.loop (Native Method (Looper.java:135) android.app.ActivityThread.main (ActivityThread.java:5312) on java.lang.reflect.Method.invoke) java. lang.reflect.Method.invoke (Method.java:372) .internal.os.ZygoteInit $ MethodAndArgsCaller.run (ZygoteInit.java:901) on com.android on com.android.internal.os.ZygoteInit.main (ZygoteInit .java: 696) 03-17 13: 38: 48.531 7927-7954 / Com. Xxxxxxxxx.android.beta I / Textile: CrashCat Report Upload Complete:  


No comments:

Post a Comment