title: Start service at boot time for android 4.0
body: <p>I can't not start service when I want to start service at boot time for android 4.0, in android.
  My code is below:</p>
  
  <pre><code>&gt; public class StartUpReceiver extends BroadcastReceiver{   @Override
  &gt;   public void onReceive(Context context, Intent intent) {         String
  &gt; action = intent.getAction();      if
  &gt; (action.equalsIgnoreCase("android.intent.action.BOOT_COMPLETED")) {
  &gt;           Intent myIntent = new Intent(context, StartAUT_Service.class);
  &gt;           Log.i("Broadcast", "startService on boot time:." + myIntent);
  &gt;           context.startService(myIntent);         }
  &gt;         }    }
  
  
  
  &gt; &lt;uses-permission
  &gt; android:name="android.permission.RECEIVE_BOOT_COMPLETED" /&gt;
  &gt;       &lt;application android:icon="@drawable/icon" android:label="@string/app_name"&gt;        
  &gt;           &lt;receiver android:name="com.Android.Exercise.StartUpReceiver" android:exported="false"&gt;
  &gt;               &lt;intent-filter&gt;
  &gt;                   &lt;action android:name="android.intent.action.BOOT_COMPLETED"/&gt;
  &gt;                   &lt;action android:name="StartInstrument" /&gt;
  &gt;                   &lt;action android:name="PrintControlName" /&gt;              
  &gt;               &lt;/intent-filter&gt;
  &gt;           &lt;/receiver&gt;          
  &gt;           &lt;service android:enabled="true" android:name="StartAUT_Service"&gt;
  &gt;               &lt;intent-filter&gt;
  &gt;                   &lt;action android:name="com.Android.Exercise.StartAUT_Service" /&gt;
  &gt;               &lt;/intent-filter&gt;
  &gt;           &lt;/service&gt;
  &gt;       &lt;/application&gt;
  </code></pre>
  
  <p>And in LogCat show Shutting down VM when i run above project, so my broadcast don't receive action.
  Plz help me.!!!
  Thanks so much.</p>