开发者

Receiving SMS messages in Android 1.6

开发者 https://www.devze.com 2022-12-08 10:20 出处:网络
I have a code sample (from Reto Meier\'s book) on receiving SMS messages in an android application using a broadcast receiver.

I have a code sample (from Reto Meier's book) on receiving SMS messages in an android application using a broadcast receiver.

I am looking to be able to receive a SMS message in my application however the code I already have a sample of seems to be depreciated from what I can tell...

Does anyone have a more up to date (android 1.5 or 1.6) example of how to receive SMS messages in an android application?

Thanks. Tom开发者_JS百科.


Could you show us what you have or tell us what you think might be wrong with it?

The general steps for receiving an SMS are pretty easy. Basically you build a BroadcastReceiver with the intent filter of android.provider.Telephony.SMS_RECEIVED. There are several tutorials on this topic out there. A quick Google search turned up this one and this one.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号