摘要: activity的启动模式也叫launchMode,一共有以下四种: 1.standard 2.singleTop 3.singleTask 4.singleInstance 启动设置在<activity android:launchMode:"xxx">中设置,默认为standard standa 阅读全文
posted @ 2016-08-16 23:24 Lyxin_c 阅读(148) 评论(0) 推荐(0) 编辑
摘要: activity1传值给activity2,我们可以用Intent.putExtra来实现,还可以用bundle来完成.在此不赘述. 在2返回值给1的时候我们也可以用这样的方式,然后跳转活动,startActivity. 但是,还有一个方法叫setResult(resultCode, intent 阅读全文
posted @ 2016-08-16 23:13 Lyxin_c 阅读(167) 评论(0) 推荐(0) 编辑
摘要: Serializable是由JAVA封装的传递方法,Parcelable则是android创建的。 两者相比较Serializable简单,但是消耗较大,Parcelable则相对麻烦,但是消耗小 Serializable使用方法 : 1.implement Serializable 2.传递值 3 阅读全文
posted @ 2016-08-16 15:40 Lyxin_c 阅读(462) 评论(0) 推荐(0) 编辑