Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

Start service after reboot or shutdown the device android

$
0
0

Hi all Now i have make a service and it run fine but when i close the device and open it again it stops and i can't find the right answer i have used Titanium.Android.BroadcastReceiver but it doesn't work can any one help me

var bc = Ti.Android.createBroadcastReceiver({
    onReceived: function() {
        Ti.API.info('Handling broadcast.');
    }
});
 
Ti.Android.registerBroadcastReceiver(bc, [Ti.Android.ACTION_BOOT_COMPLETED]);

Viewing all articles
Browse latest Browse all 8068

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>