Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Remove recent app button as done in SureLock application

Dose any one have any idea on how is sure lock removing recent app button from navigation bar on an unrooted device or is there any way by which we can disable home and recent app icon.

Any reply would be of great help...

thanks, Ankit

like image 670
Ankit Aggarwal Avatar asked Nov 03 '22 07:11

Ankit Aggarwal


1 Answers

What SureLock does is add the flag FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS in the intent passed to startActivity(intent). See an earlier discussion here.

like image 152
PC. Avatar answered Nov 15 '22 01:11

PC.