Page 1 of 1

When clicking on an app icon (android) it restarts app, not switches to an app, why?

Posted: Tue Apr 30, 2013 6:31 pm
by dale

Hi,
I'm running an installed .apk on test phone.
I have put an icon to the app on my phone.
When I click on the app icon first time, it runs fine.
When I do something else, return to the icon, click it agin, the app is reloaded, it doesn't switch to the previous status.
Can I make it do this? i.e clicking again on the icon will just switch to the app already running?
Thanks,
Dale.


When clicking on an app icon (android) it restarts app, not switches to an app, why?

Posted: Tue Apr 30, 2013 10:11 pm
by maxkatz

When you say "reloaded" -- the app starts from the splash screen again or a particular page or content is reloaded?


When clicking on an app icon (android) it restarts app, not switches to an app, why?

Posted: Wed May 01, 2013 7:47 am
by dale

It starts again at the splash screen again.

Run app.
Starts on spash screen.
Navigate to screen two.
Shows screen two.
Exit app, by using another phone feature.
Click icon to run app.
Shows splash screen.

I am using multi-page template, but I thought that the app would just been shown again in the state it was left at.

Thanks,

Dale.


When clicking on an app icon (android) it restarts app, not switches to an app, why?

Posted: Wed May 01, 2013 5:55 pm
by maxkatz

Try using this 'resume' event to open the correct page: http://docs.phonegap.com/en/2.7.0/cor...


When clicking on an app icon (android) it restarts app, not switches to an app, why?

Posted: Sun May 05, 2013 9:36 am
by dale

Thanks.

On the resume event, what would I do, try to show a page or do something else?
I'm assuming that as the resume event is not handled at the moment, the default is to re-load app?

Ta.

Dale.


When clicking on an app icon (android) it restarts app, not switches to an app, why?

Posted: Sun May 05, 2013 10:36 am
by dale

It seems that the resume event is fired up when the app has focus, and say, I turn off the screen with the power button, then turn it back on - I am able to get this event and do a alert.
It doesn't seem to create a resume event when the app is run by clicking on the app icon on the screen.


When clicking on an app icon (android) it restarts app, not switches to an app, why?

Posted: Sun May 05, 2013 6:01 pm
by maxkatz

All native device events are handled by Apache Cordova (PhoneGap). Search if anyone else has a similar problem/solution