随笔分类 -  android

摘要:具体实现,举一个例子来说明,Activity 分别 A 、B两个Activity;一、A Activity向B Activiyty 传递数据Intent intent = new Intent();intent.setClass(DayReport.this, SurveyMsg.class);sur.putString("xmlname", path);intent.putExtras(sur);startActivityForResult(intent, 0);二、B Activity 接收数据,在 onCreate 方法中接收数据 Bundle bundle=this 阅读全文
posted @ 2012-12-03 17:46 zx132797 阅读(568) 评论(0) 推荐(0) 编辑
摘要:一、声明Activity 内部 BroadcastReceiver () public static class Alarmreceivers extends BroadcastReceiver{ @Override public void onReceive(Context context, Intent intent) { // TODO Auto-generated method stub ... 阅读全文
posted @ 2012-11-20 17:37 zx132797 阅读(168) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示