摘要: 需求:现在有应用A和应用B,我需要在A应用中启动B应用中的某个Activity实现:A应用中的Activity发送广播,关键代码如下: String broadcastIntent = "com.example.android.notepad.NotesList";//自己自定义 Intent intent = new Intent(broadcastIntent); this.sendBroadcast(intent);B应用中需要一个BroadcastReceiver来接收广播,取名TestReceiver继承BroadcastReceiver重写onReceive方法 阅读全文
posted @ 2012-08-31 14:01 逍遥K杰 阅读(17753) 评论(1) 推荐(3) 编辑