How to open sms app via implicit intent?
You can try this, it work for me:
Intent intent = new Intent(Intent.ACTION_MAIN);
intent.addCategory(Intent.CATEGORY_APP_MESSAGING);
startActivity(intent);
Launch default SMS app without a message
Intent intent = new Intent(Intent.ACTION_MAIN);
intent.addCategory(Intent.CATEGORY_DEFAULT);
intent.setType("vnd.android-dir/mms-sms");
startActivity(intent);
This may be what you want.
android launch SMS intent without any recipient
Uri uri = Uri.parse("smsto:");
Intent intent = new Intent(Intent.ACTION_SENDTO, uri);
intent.putExtra("sms_body", "Hello World!");
startActivity(intent);
note
this way doesn't need any permission in Manifest
Related Topics
How to Handle Dynamic Json in Retrofit
Noclassdeffounderror For Code in an Java Library on Android
How to Detect Android App Uninstall
Programmatically Switching Off Android Phone
How to Get Current Time from Internet in Android
What Android Tools and Methods Work Best to Find Memory/Resource Leaks
Android - Sms Broadcast Receiver
How to Detect When an Android Application Is Running in the Emulator
Android: How to Check If a View Inside of Scrollview Is Visible
How to Add Manifest Permission to an Application
Clicking Urls Opens Default Browser
How to Lay Out Views in Relativelayout Programmatically
Android Push Notifications: Icon Not Displaying in Notification, White Square Shown Instead
How to Refresh Mediastore on Android
What's the Enhancement of Appcompatactivity Over Actionbaractivity