boot - how to differentiate safe mode and normal mode programmatically in android? -


i want work safe mode in android. how can check whether device in safe mode or not programmatically? possible set password safe mode?

you can check if device has been booted in safe mode issafemode(), can refer link, https://developer.android.com/reference/android/content/pm/packagemanager.html#issafemode()


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

reflection - How to access the object-members of an object declaration in kotlin -

php - Doctrine Query Builder Error on Join: [Syntax Error] line 0, col 87: Error: Expected Literal, got 'JOIN' -