Tuesday 15 February 2011

android - Keeping an app running in the background -



android - Keeping an app running in the background -

i have mobile application revolves around timer counts downwards on screen , sends various things such text messages when timer reaches time along changing color, vibrating etc etc. there way maintain app running in background not killed off? using phonegap service phonegap plugins option. have tried 1 plugin called "background mode" here link documentation. doesn't seem work 100% of time.

phonegap generates config.xml, can alter of properties/settings of app. here propeties/preferences (background related ones) have defined in config file.

<preference name="exit-on-suspend" value="false" /> <preference name="keeprunning" value="true" /> <gap:plugin name="de.appplant.cordova.plugin.background-mode" version="0.5.0" />

any suggestions appreciated.

thanks.

try using service.i think need.

activity may killed service preserved

(as long hardware memory not consumed else, service killed , restarted if want)

http://developer.android.com/guide/components/services.html

android ios cordova phonegap-plugins mobile-application

No comments:

Post a Comment