title: How can BroadCastReceiver keep listening even the App-Activity is completely killed
body: <p>I want to build an app which listen to incoming messege,Broadcast Listener will call an Activity to do some stuff,It works fine.
  But when the app is killed,Broadcast Listener stop listening.</p>
  
  <p>So how can I keep the broadcastlistener listening to incomingsms? Just like default sms app of android?</p>
  
  <p>This is my Broadcastlistener file:</p>
  
  <pre><code>public class IncomingSms extends BroadcastReceiver {
        public void onReceive(Context context, Intent intent) {
        //DoSomeAction
        Intent myintent = new Intent(context,MainActivity.class); //It will be killed once later.
        context.startActivity(myintent);
        }
  }
  </code></pre>
  
  <p>This is my Manifest file:</p>
  
  <pre><code> &lt;uses-permission android:name="android.permission.INTERNET" /&gt;
   &lt;uses-permission android:name="android.permission.RECEIVE_SMS" /&gt;
   &lt;uses-permission android:name="android.permission.READ_SMS" /&gt;
   &lt;uses-permission android:name="android.permission.SEND_SMS" /&gt;
   &lt;uses-permission android:name="ANDROID.PERMISSION.RECEIVE_BOOT_COMPLETED"/&gt;     
       &lt;receiver android:name=".IncomingSms" &gt;
             &lt;intent-filter&gt;
                 &lt;action android:name="android.provider.Telephony.SMS_RECEIVED" /&gt;
             &lt;/intent-filter&gt;
       &lt;/receiver&gt;
  </code></pre>