title: starting BroadcastReceiver from Service when app destroy?
body: <p>i have a probleme with BroadcastReceiver &amp; Service in my application 
  .......
  i have an 
  * activity ( MainActivity ) 
  * service ( NotifyService )
  * Receiver ( NotifyBroadcast )</p>
  
  <h2>service start from activity and then the receiver start from service</h2>
  
  <h2>everything is good when my app was open , but when i clear it (destroyed) ,receiver stop doing its job ( just a toast message )</h2>
  
  <p>here is my code : 
  MainActivity  .. </p>
  
  <pre><code> if( !NotifyService.ServiceIsRun){
          NotifyService.ServiceIsRun=true;
          startService(new Intent(this, NotifyService.class));
      }
  </code></pre>
  
  <p>NotifyService ..</p>
  
  <pre><code>public class NotifyService extends Service {
  public static boolean ServiceIsRun=false;
  @Override
  public int onStartCommand(Intent intent, int flags, int startId) {       
      Timer t = new Timer();
      if(ServiceIsRun){
          t.scheduleAtFixedRate(new TimerTask() {
  
                                    @Override
                                    public void run() {
                                        Log.e("broadService", "hello from Service"+i +"new :"+lastnew +"article :"+lastarticle);
                                        i++;
                                        Intent intent = new Intent( "com.latestBabiaNews" );
                                        sendBroadcast(intent);
                                    }
  
                                },
                  //Set how long before to start calling the TimerTask (in milliseconds)
                  0,
                  //Set the amount of time between each execution (in milliseconds)
                  20000);
      }
  
      return START_STICKY;
  }
  
  @Nullable
  @Override
  public IBinder onBind(Intent intent) {
      return null;
  }
  }
  </code></pre>
  
  <p>NotifyBroadcast ..</p>
  
  <pre><code>public class NotifyBroadcast extends BroadcastReceiver {
  @Override
  public void onReceive(Context context, Intent intent) {
      final  Bundle bundle = intent.getExtras();
      if (intent.getAction().equalsIgnoreCase("com.latestBabiaNews")){ 
         Toast.makeText(context,"hello from Broadcast",Toast.LENGTH_SHORT).show();
  
      }
  
  }
  }
  </code></pre>
  
  <p>And in my Manifest .. </p>
  
  <pre><code>&lt;service android:name=".NotifyService"&gt;&lt;/service&gt;
      &lt;receiver android:name=".NotifyBroadcast"&gt;
          &lt;intent-filter&gt;
              &lt;action android:name="com.latestBabiaNews"&gt;&lt;/action&gt;
          &lt;/intent-filter&gt;
      &lt;/receiver&gt;
  </code></pre>
  
  <p>..........
  finally i can show the Toast message when app was app was opened , but when i clear it i can't show anything ! </p>