Start activity on boot

Try this: 1] In AndroidManifest.xml file: <uses-permission android:name=”android.permission.RECEIVE_BOOT_COMPLETED” /> <application … <receiver android:name=”.StartMyActivityAtBootReceiver” android:enabled=”true” android:permission=”android.permission.RECEIVE_BOOT_COMPLETED” > <intent-filter> <action android:name=”android.intent.action.BOOT_COMPLETED” /> <category android:name=”android.intent.category.DEFAULT” /> </intent-filter> </receiver> </application> 2] Inside BroadcastReciever class with StartMyActivityAtBootReceiver as class name. @Override public void onReceive(Context context, Intent intent) { Intent i = new Intent(context, MainActivity.class); i.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); context.startActivity(i); } This worked for … Read more

ADB Receive broadcast BOOT_COMPLETE

You can keep polling for sys.boot_completed or dev.bootcomplete system properties. As for the code, I do not know what environment and/or scripting language you are using. It’s pretty straightforward. First you need to find which property is being set to “1” up on boot completion by your phone’s software. Let’s say it is dev.bootcomplete. Then … Read more

How do I find ARM Linux entry point when it fails to uncompress?

We seem to have ported Das U-Boot successfully. There’s evidence that that is a faulty assumption. Just before calling the kernel, the pointer theKernel is 10008000 and not 10800000. Which version of U-Boot are you using? In both 2012.10 and 2013.04 versions of U-Boot, the variable theKernel is only declared and used by code for … Read more

How to start Solr automatically?

As you’re on a shared Linux box, you’ll have to ask the system administrator to do the following, probably. Create a startup script in /etc/init.d/solr. Copy this code, my Solr startup script, into that file: #!/bin/sh # Prerequisites: # 1. Solr needs to be installed at /usr/local/solr/example # 2. daemon needs to be installed # … Read more