Reading SMS from inbox in j2me

后端 未结 4 1696
一整个雨季
一整个雨季 2021-01-24 16:39

I am using j2me technology. My application is for sending and receiving sms. Sender can not send sms on specific port and sms always goes to inbox. Is it possible to read sms fr

4条回答
  •  囚心锁ツ
    2021-01-24 17:08

    Yes it can be done with AT-command. I have done it before. J2ME can't read your native SMS can came with the phone unless you write a background processes in Symbian C++ that extracts the SMS from your inbox and handles it to your Java ME application.

    In the AT command implementation, you use the following algorithm
    Set the phone on text mode by doing this - "AT+CMGF=1" + RETURN, then also send AT+CMGS="RECIPIENT NUMBER " + CTRL+Z. Then, before you can send the AT command to the GSM modem, in your J2ME program, you need to use CommConnection framework i.e. serial port protocol.

提交回复
热议问题