Creating a SMS Application in Android?

后端 未结 4 1252
无人共我
无人共我 2020-12-23 23:37

I am creating an SMS Application to send and receive SMS.

I am able to send SMS using the following code:

SmsManager sms = SmsManager.getDefault();
         


        
4条回答
  •  死守一世寂寞
    2020-12-24 00:09

    What you need to do is register a BroadcastReceiver object. Check out this article for more information.

    If you want to hide SMS messages from the primary inbox, you'll need to delete them from the SMS ContentProvider and use your own SQLite database to store them. Also be sure to mark them as read in the content provider to remove the notification from the tray.

提交回复
热议问题