I'm creating a lock screen app and I have a problem: If I use these intent filters in my lock activity:
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.HOME"/>
<category android:name="android.intent.category.LAUNCHER" />
<category android:name="android.intent.category.DEFAULT" />
so that I can handle home button press but the problem will be that when I reboot my phone/emulator my activity will run instantly(before on boot completed) and as home activity(I guess) and it won't proceed further and even after I unlock it by entering password(and call finish()) the activity launches again. Any idea how should I solve this?
EDIT: I thought of another way and that is to add intentFilters in run time this way I can avoid this problem but I don't know how to do it on activity and is it even possible?
P.S. I have searched for this a lot(more than one week constantly browsing stackoverflow) and many has suggested not to block home button but I need to so please help me.