摘要: layout:<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" > <Te 阅读全文
posted @ 2011-09-06 16:22 自然大道 阅读(213) 评论(0) 推荐(0) 编辑
摘要: 当Activity与Activity/Service 参数传递,常用方法就是通过Intent实现例子:发送代码:Intentintent=newIntent(...);Bundlebundle=newBundle();bundle.putString("param","value");intent.putExtras(bundle);context.startActivity(intent);或context.startService(intent);接收代码:Bundlebunde=intent.getExtras();Stringname=bunde 阅读全文
posted @ 2011-09-06 15:35 自然大道 阅读(704) 评论(0) 推荐(0) 编辑