dale
Posts: 0
Joined: Fri Mar 29, 2013 5:28 pm

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

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.

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

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

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

dale
Posts: 0
Joined: Fri Mar 29, 2013 5:28 pm

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

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.

dale
Posts: 0
Joined: Fri Mar 29, 2013 5:28 pm

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

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.

dale
Posts: 0
Joined: Fri Mar 29, 2013 5:28 pm

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

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.

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

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

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

Return to “Issues”