Android BOOT_COMPLETED handler module
On 1 April 2015 in TechThis Titanium Android module provide a place where you can run your JS script when the device receives BOOT_COMPLETED broadcast intent. By simply adding boot_completed.js
into your Resources folder, this JS file will be run when the broadcast intent received.
You may also changed the file to run by editing the tiapp.xml
<android> <manifest> <application> <receiver android:name="nc.bootcompleted.BootCompletedReceiver"> <meta-data android:name="boot_completed_js" android:value="lib/boot_completed_handler.js"/> <!-- Resources/lib/boot_completed_handler.js will be called instead --> </receiver> </application> </manifest> </android>
Related posts:
-
Lazyloading JS modules in Titanium app
-
Titanium iOS builder script
-
Flurry Android 3.2.0 SDK for Titanium module
-
Titanium app components interaction using events and callbacks
-
Google Play Store updated UI for Gingerbread
-
Method calling thread for Titanium module (Android)
-
Titanium iOS “build” is an unrecognized command
-
Titanium app hex color value with alpha channel
-
Titanium Android keystore
-
Add custom framework to Titanium iOS module
Filed under Tech with tags Android, BOOT_COMPLETED, Broadcast intent, Broadcast receiver, Intent, Titanium Mobile, Titanium Module
Leave a Reply