摘要: 在Android中编写过程序的开发人员都知道。在Activity、Service等组件之间传递数据(尤其是复杂类型的数据)很不方便。一般可以使用Intent来传递可序列化或简单类型的数据。看下面的代码。 Intentintent = new Intent( this ,Test. class ); intent.putExtra( " param1 " , " data1 " ); intent.putExtra( " intParam1 " , 20 ); startActivity(intent); 这样就ok了。在当前Activ 阅读全文
posted @ 2013-11-04 12:27 hnrainll 阅读(497) 评论(0) 推荐(0) 编辑