注册SMS接收回调函数实例
来源:互联网 发布:mac化妆刷 编辑:程序博客网 时间:2024/06/02 05:11
注册SMS接收回调函数实例。M5-rc15下调试通过.
请注意AndroidManufest.xml红色部分。
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="org.anddev.android.smsexample">
<uses-permission android:name="android.permission.RECEIVE_SMS" />
<application android:icon="@drawable/icon">
<!-- The Main Activity that gets started by the IntentReceiver listed below -->
<activity android:name=".SMSActivity" android:label="@string/app_name">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<!-- This class will react on the SMS show a notification
and start the Main-App afterwards -->
<receiver android:name=".SMSReceiver">
<intent-filter>
<action android:name="android.provider.Telephony.SMS_RECEIVED" />
</intent-filter>
</receiver>
</application>
</manifest>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="org.anddev.android.smsexample">
<uses-permission android:name="android.permission.RECEIVE_SMS" />
<application android:icon="@drawable/icon">
<!-- The Main Activity that gets started by the IntentReceiver listed below -->
<activity android:name=".SMSActivity" android:label="@string/app_name">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<!-- This class will react on the SMS show a notification
and start the Main-App afterwards -->
<receiver android:name=".SMSReceiver">
<intent-filter>
<action android:name="android.provider.Telephony.SMS_RECEIVED" />
</intent-filter>
</receiver>
</application>
</manifest>
- 注册SMS接收回调函数实例
- 回调函数实例
- 回调函数实例
- 回调函数实例
- 回调函数实例
- 回调函数实例
- 回调函数实例
- 回调函数实例
- 回调函数实例
- SMS注册与接收短信
- GLUT-注册回调函数
- 回调函数_注册
- 回调函数 学习实例
- Java回调函数实例
- Java回调函数实例
- SEH的注册回调函数
- 注册回调函数处理SQLITE_BUSY错误
- 回调函数与注册函数
- dsoframer 中文乱码解决方法
- 简单的课程信息管理(文本文件操作,c++)
- Tomcat 端口的设置
- 网页菜单详解:基本原理
- 关于重定向的问题
- 注册SMS接收回调函数实例
- 用ASP.NET和Ajax搭建了一个框架
- 回家的感觉真好
- 向系统注册回调(Callback)函数的方法--获取电话状态更新和短信接收通知
- Symbian OS控件开发之对话框
- start
- WINCE C#读写INI文件
- oracle表空间还原(数据库还原)
- linux C 字符集转换,UTF-8,GB2312