I am making a launcher for android os. But I dont know how to detect home button pressed when launcher app is working? Thanks you!
This is config in Manifest:
<activity
android:name=".MainActivity"
android:screenOrientation="portrait"
android:theme="@style/NoActiobarTheme"
android:launchMode="singleTask"
android:windowSoftInputMode="adjustPan" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.HOME" />
</intent-filter>
</activity>