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
  • 40,471
  • 69
  • 211
  • 366
Dileep Perla
  • 1,815
  • 7
  • 33
  • 53
  • 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
  • 19,950
  • 8
  • 59
  • 87
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,112
  • 2
  • 24
  • 44