Hello,
I detect a problem running customCodeService:runJavaCode that causes the application crash on Android OS.
Take into account that in IOS the app works properly and no problem is detected.
I use all the latest versions of Corona and App42 software:
Corona SDK: 2016.2949
App42_CustomCode_Sample-master (App42_JAVA_SDK_2.6)
App42-Lua-API (2.7)
Samsung S3 - Android 4.3
The java code I am running is the CustomCode Sample that print "Running Custom Code Hello World“.
The corona sdk code I am running is “run java code” published in dev-center corona api reference.
The procedure that causes the app crash is:
1- open the app
2- runJavaCode “hello world”
3- press lock screen button (app is suspended)
4- Wait 90 sec aprox
4- unlock the screen (app is resumed)
5- runJavaCode “hello world”
6- A message “the app has stopped” appears on the screen
Do you have this problem with other Android devices and SDKs?
How can I resolve the problem?
Thank you,
German.
PS:
In the adb console the following messages appears:
I/Corona (10234): ################################ RUN JAVA CODE HELLO WORLD ####################################
W/dalvikvm(10234): threadid=15: thread exiting with uncaught exception (group=0x41a32730)
E/AndroidRuntime(10234): FATAL EXCEPTION: Thread-912
E/AndroidRuntime(10234): java.lang.NullPointerException
E/AndroidRuntime(10234): at network.NetworkRequest$AsyncNetworkRequestRunnable.run(NetworkRequest.java:1912)
E/AndroidRuntime(10234): at java.lang.Thread.run(Thread.java:841)
I/ActivityManager( 2357): Notify an ApplicationCrash