user311086
user311086

Reputation: 1088

How to disable, or hide system settings programmatically?

I do not want the user to open device settings, so I need to disable device settings.

I found way to open settings

startActivityForResult(new Intent(android.provider.Settings.ACTION_SETTINGS), 0);

But I am looking for a way to disable it, how can I do that?

Upvotes: 2

Views: 4081

Answers (2)

Andrew
Andrew

Reputation: 1413

You may create custom launcher with kiosk mode to achieve your target. Note that this approach requires some actions from your users.

Related links https://developer.android.com/work/cosu.html http://pvolan.blogspot.ru/2017/01/android-50-kiosk-mode-aka-super.html

Upvotes: 0

Murat Karagöz
Murat Karagöz

Reputation: 37604

You can not disable system packages unless you make a custom rom. Besides that it is a huge security risk to allow developers to disable settings so the user can not stop the app.

Upvotes: 3

Related Questions