Search code examples
androidandroid-intentandroid-5.0-lollipop

Open the settings Page with search string in Android Lollipop with intents


Im trying to open the Settings page with the search query already typed in

Image url: https://i.sstatic.net/LE5sU.jpg

I know we can open the Settings page through an intent.But is it possible to add an extra for the search query so that it will open the Settings page with the search string already typed in(like it does for email with the email id typed in)?


Solution

  • Opening Settings Activity with filering option is not available.

    Without filters it will be just:

    context.startActivity(new Intent(android.provider.Settings.ACTION_SETTINGS));

    But there are more flags to open specific settings so instead of using search string you could use specific one Here is full list of available settings pages to open

    In your screen you have accessibility things so maybe ACTION_ACCESSIBILITY_SETTINGS will mach your needs