Start at Bootup Receiver App Logic

tomb

Member
Licensed User
Longtime User
Hi Guys,
From time to time I read someone wishes to activate their app at startup. I recently developed a embedded app in B4Android it had to detect boot completed, bypass the SLIDELOCK and start the app without intervention. The link to all this is described at http:thomasofneedham.com/android/ and follow the embedded link. I used the HelloWord app on B4Android as the test program with a modifed manifest file and a simple Eclipse Android java app to do the rest. It is one way to have a B4A app start at bootup and all without intervention.
Best, Tom B
 

rbsoft

Active Member
Licensed User
Longtime User
Most interesting!

Would it be possible to translate this to B4A and use it directly in an app?
B4X:
// comment out the following three lines if you want to keep slidelock
            KeyguardManager  mKeyGuardManager =  (KeyguardManager) getSystemService(KEYGUARD_SERVICE);
           KeyguardLock mLock = mKeyGuardManager.newKeyguardLock("SubLauncher");
           mLock.disableKeyguard();
     //     end slidelock  disable

Source: http://thomasofneedham.com/android/embedded/SubLauncher.java.txt

Rolf
 
Upvote 0
Top