2

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.

Mridang Agarwalla
  • 43,201
  • 71
  • 221
  • 382
Dileep Perla
  • 1,865
  • 7
  • 33
  • 54
  • Intent eventIntentMessage =getPackageManager().getLaunchIntentForPackage(Telephony.Sms.getDefaultSmsPackage(getApplicationContext)); startActivity(eventIntentMessage); – Vinayak V Naik Sep 11 '15 at 15:03

2 Answers2

3

Check out this question: launch sms application with an intent. There are a number of responses that you can try.

Community
  • 1
  • 1
slayton
  • 20,123
  • 10
  • 60
  • 89
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