My app is not working after it wakeup from sleep

10 replies [Last post]
android1's picture
android1
User offline. Last seen 1 day 5 hours ago. Offline
Joined: 22 Sep 2011

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?

Replies

peach pellen's picture
peach pellen
User offline. Last seen 1 day 12 hours ago. Offline
Staff
Joined: 12 Apr 2011

iOS or Android?

It just freezes, is that correct?

android1's picture
android1
User offline. Last seen 1 day 5 hours ago. Offline
Joined: 22 Sep 2011

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?

peach pellen's picture
peach pellen
User offline. Last seen 1 day 12 hours ago. Offline
Staff
Joined: 12 Apr 2011

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 :)

@RSCdev's picture
@RSCdev
User offline. Last seen 2 hours 53 min ago. Offline
Joined: 6 Sep 2011

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.

android1's picture
android1
User offline. Last seen 1 day 5 hours ago. Offline
Joined: 22 Sep 2011

@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?

@RSCdev's picture
@RSCdev
User offline. Last seen 2 hours 53 min ago. Offline
Joined: 6 Sep 2011

@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.

android1's picture
android1
User offline. Last seen 1 day 5 hours ago. Offline
Joined: 22 Sep 2011

@RSCdev i dont think there is url available to directly go to rating page.. but i gave my app's market url...

@RSCdev's picture
@RSCdev
User offline. Last seen 2 hours 53 min ago. Offline
Joined: 6 Sep 2011

@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.

android1's picture
android1
User offline. Last seen 1 day 5 hours ago. Offline
Joined: 22 Sep 2011

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...

:)

@RSCdev's picture
@RSCdev
User offline. Last seen 2 hours 53 min ago. Offline
Joined: 6 Sep 2011

@android1,

Thank you very much!

Was exactly it I was talking about and needing. :)

Cheers,
Rodrigo.

Viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.