You can also implement this from your AndroidManifest.xml file, just adding
android:noHistory="true"
attribute in those <activity>
you want (eg. HomeActivity)
see here is the sample code of manifest
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.rdc.helloWorld"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk android:minSdkVersion="8" />
<application
android:icon="@drawable/ic_launcher"
android:label="@string/app_name" >
<activity
android:name=".HelloWorldActivity"
android:label="@string/app_name"
android:noHistory="true">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>
so when you click back button on Home Activity screen, it will clear history of this screen only
You may like read about noHistory tag details,
How does android:noHistory=“true” work?