Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想从我的应用程序中打开 Android SMS 应用程序,并且不想将任何联系人设置为收件人,如何?
Uri uri = Uri.parse("smsto:"); Intent intent = new Intent(Intent.ACTION_SENDTO, uri); intent.putExtra("sms_body", "Hello World!"); startActivity(intent);
这种方式不需要任何许可Manifest
Manifest