My app is not working after it wakeup from sleep

My corona app is not working when device go to sleep state. no buttons nothing is responding to continue my game.
I used following code to keep track the system event
. When screen off it prints applicationSuspend but after screen on it never prints the “applicationResume” [Used android adb eclipse to display print messages]

if( event.type == “applicationExit” ) then
print(“applicationExit”)
db:close()
elseif event.type == “applicationSuspend” then

print(“applicationSuspend”)
elseif event.type == “applicationResume” then
print(“applicationResume”)
elseif event.type == “applicationStart” then
print(“applicationStart”)
end

Any Solution? [import]uid: 92740 topic_id: 20684 reply_id: 320684[/import]

iOS or Android?

It just freezes, is that correct? [import]uid: 52491 topic_id: 20684 reply_id: 81185[/import]

yeah… It freezes…im testing on android device… I have a button to load a next scene but it is not working and I have a another button to show my android market link it works… is that problem of director class? [import]uid: 92740 topic_id: 20684 reply_id: 81188[/import]

It’s tricky for me to say as I don’t normally deal with Android. This may be worth reposting in the Android subforum - several people use director and make Android apps that run fine when interrupted so it’s worth checking in there.

Peach :slight_smile: [import]uid: 52491 topic_id: 20684 reply_id: 81192[/import]

Hey sorry @android1 and @Peach, but may I ask you @android1 how can I get the link for people rate my app from inside the app for Android Market?
PS: Thank you so much for any input on this and sorry for “hijack” your topic anyway.
Cheers,
Rodrigo. [import]uid: 89165 topic_id: 20684 reply_id: 81199[/import]

@RSCdev You can use web popup to do that…
[lua]native.showWebPopup( 0, 0, display.contentWidth, display.contentHeight,“Enter any url here”,urlRequest=listener} ) [/lua]

Is that your doubt? [import]uid: 92740 topic_id: 20684 reply_id: 81209[/import]

@android1 I really appreciate your quick reply! BTW it was not exactly what I would like to know. :slight_smile:

So, let me try to explain your better also:

  • As in App Store, we can have one link into our app that when the user click on it, it brings the user directly to the review page of our app on app store, and so the user can give the stars and write the review. Got it? So what am asking you is how to do the same on Android, I mean: where do I get the direct link for when the Android user of my app click on that link it brings him for the RATE my app page? :slight_smile:
    Sorry, I wrote a lot and have no idea if you`ll understand! Anyway, just tell me if not.
    Thank you,

Cheers,
Rodrigo. [import]uid: 89165 topic_id: 20684 reply_id: 81214[/import]

@RSCdev i dont think there is url available to directly go to rating page… but i gave my app’s market url… [import]uid: 92740 topic_id: 20684 reply_id: 82100[/import]

@android1 - Thanks for the reply.

So if we cannot have the RATE page URL, no problem as I can use the app`s market URL as you have done.

PS: My question: I get my app`s market url only after post it there on Android Market right?
Cheers,
Rodrigo. [import]uid: 89165 topic_id: 20684 reply_id: 82105[/import]

No you can have it! App’s market url is nothing but the

[html] <uri_prefix>details?id=<package_name>[/html]

Refer this link http://developer.android.com/guide/publishing/publishing.html

Hope this will help you…

:slight_smile: [import]uid: 92740 topic_id: 20684 reply_id: 82143[/import] </package_name></uri_prefix>

@android1,

Thank you very much!

Was exactly it I was talking about and needing. :slight_smile:
Cheers,
Rodrigo. [import]uid: 89165 topic_id: 20684 reply_id: 82158[/import]