custom-code problem. After app in background runJavaCode makes app crash

0 votes

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

 

 

asked Nov 10, 2016 in Android by germanfv (18 points)

1 Answer

0 votes
Hello Germanfv,

Apologies for late reply.

I have forwarded this to our development team and will update you ASAP for the same.

Regards,

Rajeev
answered Nov 14, 2016 by rajeev.etc (1,660 points)
Hi Rajeev, thank you, I will be waiting for your answer.

Thanks.
Download Widgets
Welcome to ShepHertz Product line forum, where you can ask questions and receive answers from the community. You can also reach out to us on support@shephertz.com
...