How to open and show phone's message inbox programmatically..?

前端 未结 4 804
一生所求
一生所求 2021-01-26 23:19

When we click on messages we are showed with the inbox.

I want to show the same window when i clicked on my application\'s button.

So, I want to start message in

4条回答
  •  不知归路
    2021-01-26 23:49

    String SMS_MIME_TYPE = "vnd.android-dir/mms-sms";
    
            Intent defineIntent = new Intent(Intent.ACTION_MAIN);                
    
            defineIntent.setType(SMS_MIME_TYPE);                
    
            PendingIntent pendingIntent = PendingIntent.getActivity(context, 0 , defineIntent, 0);
    

    Not sure whether it works or not

提交回复
热议问题