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.
Asked
Active
Viewed 1.2k times
2
-
Intent eventIntentMessage =getPackageManager().getLaunchIntentForPackage(Telephony.Sms.getDefaultSmsPackage(getApplicationContext)); startActivity(eventIntentMessage); – Vinayak V Naik Sep 11 '15 at 15:03
2 Answers
3
Check out this question: launch sms application with an intent. There are a number of responses that you can try.
2
Intent intent = new Intent(Intent.ACTION_MAIN);
intent.addCategory(Intent.CATEGORY_LAUNCHER);
intent.setClassName("com.android.mms", "com.android.mms.ui.ConversationList");

Sandeep P
- 4,291
- 2
- 26
- 45