Sérgio Carneiro
Sérgio Carneiro

Reputation: 3966

How to lauch android's apps preferences (from Contacts, Messages, ...)

I've been searching and I couldn't find a topic that could clarify me 100%.

My question is: How can I launch an android's app preferences activity (from Contacts, Messages, ...) on my own app?

I give an example: Imagine I'm developing an app which allows the user to quickly access to Message's Settings. I don't need to send or receive any information, I only need to open the activity, create a shortcut for it.

Upvotes: 0

Views: 600

Answers (3)

Morrison Chang
Morrison Chang

Reputation: 12121

There is no difference in writing in code an Explicit Intent which will go to a specific activity of your app and using the same format to go to a specific activity some other app. A few things to be aware of: (1) The receiving activity may be expecting particular data and fail otherwise. (2) The standard apps you are considering like Contacts, Messages while you can find the source for them in the Android Open Source Project (AOSP) may be changed by the manufacturers so that the activity names and necessary extra data could be different.

In order to maintain as much compatibility between all of the different Android manufacturers, you should stick to the standard implicit intent with the appropriate action/data.

Upvotes: 1

almalkawi
almalkawi

Reputation: 1118

The best answer in this thread has the solution: android: how do i open another app from my app?

Also check: http://android-developers.blogspot.com/2009/01/can-i-use-this-intent.html

To open settings, you can try: startActivityForResult(new Intent(android.provider.Settings.ACTION_SETTINGS, 0));

Upvotes: 1

Sam
Sam

Reputation: 86958

Someone knows if this can be done and even opening specific locations of the apps?

You don't need to know any specific locations or specific apps for these actions, simply look into Intent.ACTION_PICK.

Upvotes: 1

Related Questions