Corona & Amazon DRM

I had a from Amazon appstore stating the following:


Dear XXXX, 

Your recent  of XXXXXX is  due to the following reason(s):

Your application attempts to call an Android Activity  method on a background 
thread. Amazon DRM does not allow developers to  Android Activity lifecycle methods
on background thread.

For more information on processes and threads, please visit: 
http://developer.android.com/guide/topics//processes-and-threads.html

Additionally, the Android UI  is not thread-safe. So, you must not  your UI
from a worker thread — you must do all  to your user  from the UI 
thread.

There are two rules to Android's single thread model: 
* Do not block the UI thread 
* Do not access the Android UI toolkit from outside the UI thread Steps to Reproduce: 
  1)  application, press 01
  2) Observe force close

Please correct the issue(s) we found with your app submission so we may continue working
to get it in the Appstore.

Need help, Please!

Text looks partially missing but based on steps to reproduce, you app appears to be force closed when a hardware key is pressed.

Information in following threads "may" help

http://developer.anscamobile.com/forum/2011/05/03/android-device-back-button-causing-errors-directors-class-game-application

http://developer.anscamobile.com/forum/2011/05/04/android-hardware-buttons

@dualface,

Can you submit a bug report with more information about the problem including the build number and if you know what steps lead up to the problem? Was it a "back button" issue? It would be nice to know how Amazon came to the conclusion that it was on the wrong thread. It would also be helpful to have the code that caused the problem.

When you file the bug, put "(Tom)" in the title.

Thanks,
Tom

Thanks :)

We have two problems:

1. Amazon DRM is not compatible with Corona app. maybe Amazon DRM is a wrapper for .apk.

2. Application force closes upon attempting to play the first level.
Steps to Reproduce: 1. Launch application, press 01, 2. Observe force close.
Test OS/Device(s): 2.2/Droid Incredible.

This version build with Corona 2011.528. We test in MOTO Defy, all is fine.

-------

After two days, I resubmit my app without Amazon DRM. Problem 2 still occurs.

-------

Now, we build and submit my app with Corona 2011.484.

I built with 319 and use amazon DRM. No problems here.

views:1536 update:2011/10/8 8:54:25
corona forums © 2003-2011