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?
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?
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 :)
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.
@RSCdev You can use web popup to do that....
native.showWebPopup( 0, 0, display.contentWidth, display.contentHeight,"Enter any url here",urlRequest=listener} )
Is that your doubt?
@android1 I really appreciate your quick reply! BTW it was not exactly what I would like to know. :)
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? :)
Sorry, I wrote a lot and have no idea if you`ll understand! Anyway, just tell me if not.
Thank you,
Cheers,
Rodrigo.
@RSCdev i dont think there is url available to directly go to rating page.. but i gave my app's market url...
@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.
No you can have it! App's market url is nothing but the
<URI_prefix>details?id=<package_name>
Refer this link http://developer.android.com/guide/publishing/publishing.html
Hope this will help you...
:)
@android1,
Thank you very much!
Was exactly it I was talking about and needing. :)
Cheers,
Rodrigo.
iOS or Android?
It just freezes, is that correct?