title: How to get BroadcastReceiver for Action :android.intent.action.MAIN and android.intent.category.HOME in My Android Application
body: <p>Every One</p>
  
  <p>Can i Get BroadcastReceiver for This Intent when i press home Key :</p>
  
  <pre><code>       Starting activity: Intent { act=android.intent.action.MAIN   cat=   [android.intent.category.HOME] flg=0x10200000 cmp=com.htc.launcher/.Launcher }
  </code></pre>
  
  <p>I don't want to Consider com.htc.luncher as it will we different for Other Android Device .</p>
  
  <p>Here i my Simple Class For BroadcastReceiver :</p>
  
  <pre><code> public class HomeBrodcast extends BroadcastReceiver{
  
   @Override
   public void onReceive(Context context, Intent intent) {
      Bundle bundle = intent.getExtras();
  
  
   }
  
  }
  </code></pre>
  
  <p>In Manifest :</p>
  
  <pre><code>  &lt;receiver android:name="xxx.yyy.zzz.sss.HomeBrodcast"&gt;
          &lt;intent-filter&gt;
              &lt;action android:name="android.intent.action.MAIN"&gt;&lt;/action&gt;
              &lt;categary android:name="android.intent.category.HOME"/&gt;
          &lt;/intent-filter&gt;
      &lt;/receiver&gt;
  </code></pre>
  
  <p>For Register BroadcastReceiver  in My Activity :</p>
  
  <pre><code>          mHomeBrodcast=new HomeBrodcast();
        IntentFilter mHomeFilter=new IntentFilter("android.intent.action.MAIN");
        mHomeFilter.addCategory("android.intent.category.HOME");
        registerReceiver(mHomeBrodcast, mHomeFilter);
  </code></pre>
  
  <p>Now Problem is When After Start My Application i press Home Button Press and My Log Show Me this Intent :</p>
  
  <pre><code>  12-27 14:01:11.230: I/ActivityManager(123): Starting activity: Intent { act=android.intent.action.MAIN cat=[android.intent.category.HOME] flg=0x10200000 cmp=com.htc.launcher/.Launcher }
  </code></pre>
  
  <p>So My Goal is to get Receiver for This Intent But When i Debug i am not Getting Any Thing Some Thing Must me Wrong .What should be Problem in Getting This Intent BroadCast .</p>