简体   繁体   中英

How can I know the intents needed to open system activities

I have the need to open android's default screen settings, and previously I wanted to open android's default alarm configuration activity, in the future I'm thinking I would want to open GPS settings.

How can I get the information needed to start this activities? Where can I found the documentation about this? What's the process for getting this information without googling for the specific activity?

Check the Common Intents listing in the documentation.

It's a pretty comprehensive listing of the actions, URI formats and MIME types for building Intents for the standard Android applications.

There is a list of Actions in the documentation listed here .

You can launch any of the sub activities in the settings app using something like:

startActivity(new Intent(Settings.ACTION_WIFI_SETTINGS));

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM