title: Implement Home Button in custom Launcher
body: <p>I've written a custom Launcher and it works pretty nice. The Launcher has some pages filled with applications. I want to implement, that the variable that represents the page number is set to 0, if the homebutton is pressed. So if you are on a different page of the launcher and press the homebutton, you enter the starting page.
  I've searched a lot, but couldn't find an answer that worked for me.
  I've set the app as an launcher in the manifest.</p>
  
  <pre><code>   &lt;intent-filter&gt;
          &lt;action android:name="android.intent.action.MAIN" /&gt;
          &lt;category android:name="android.intent.category.HOME" /&gt;
          &lt;category android:name="android.intent.category.DEFAULT" /&gt;
          &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
      &lt;/intent-filter&gt;
  </code></pre>
  
  <p>Is it possible to achieve this? Just change the value of one variable, if the home button is pressed and leave the rest of the home button, as it is.</p>