How can I open the default SMS inbox activity programmatically? [duplicate]
-
11-06-2021 - |
Question
I want to open the default sms inbox in Android on click of a button in my application. I don't want to create my own activity to display inbox messages. I have searched a lot of links but couldn't find the solution.
Solution
Check out this question: launch sms application with an intent. There are a number of responses that you can try.
OTHER TIPS
Intent intent = new Intent(Intent.ACTION_MAIN);
intent.addCategory(Intent.CATEGORY_LAUNCHER);
intent.setClassName("com.android.mms", "com.android.mms.ui.ConversationList");
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow