Details
* I'm using an overlay with the camera
Stack trace
java.lang.RuntimeException: Unable to resume activity {com.twogrand.twogrand/ti.modules.titanium.media.TiCameraActivity}: java.lang.NullPointerException
at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2788)
at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:2817)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2250)
at android.app.ActivityThread.access$800(ActivityThread.java:135)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5017)
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:779)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.NullPointerException
at ti.modules.titanium.media.TiCameraActivity.onResume(TiCameraActivity.java:207)
at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1192)
at android.app.Activity.performResume(Activity.java:5310)
at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2778)
... 12 more
Please provide a simple runnable test case to reproduce this issue.
Hi Ritu, I understand a test case would help but I can't reproduce this issue and was hoping the stack trace would provide some information to help Appcelerator guide me in the right direction debugging this. This is the basic camera code, using an overlay:
Maybe the resume issue is somehow caused by the camera having an overlay? Maybe I should close the camera when the app is paused to avoid this?
DUP of TC-4234