码迷,mamicode.com
首页 >  
搜索关键字:putextra    ( 181个结果
BroadcastReceiver的两种注册方法
/* 1.静态注册先在androidanifest receiver里面注册reiver, 2.在intent事先写入启动广播Intent intent=new Intent(MainActivity.this, MyReceiver.class); 3.广播信息,intent.putExtra("...
分类:其他好文   时间:2015-01-05 16:13:57    阅读次数:334
Intent传递对象
Intent的用法大家比较熟悉了,可以借助它来启动活动,发送广播,启动服务等。在进行上述操作的时候,还可以在Intent中添加一些附加数据, 以达到传值的效果,比如在FirstActivity中添加如下代码 Intent intent=new Intent(HLActivity.this,SecondActivity.class); intent.putExtra("string_data",...
分类:其他好文   时间:2014-12-29 13:52:06    阅读次数:158
intent-putextra-to-crop-image-in-android
http://stackoverflow.com/questions/18520976/all-properties-of-intent-putextra-to-crop-image-in-androidhttp://www.cnblogs.com/iiahadadiaow/p/3979834.ht...
分类:移动开发   时间:2014-12-04 17:26:23    阅读次数:146
Android2个Activity之间传递对象
为了实现android activity之间的数据传递,主要利用意图Intent 对象的方法来完成。 基本数据类型的传递是相当简单了,主要通过如下方式完成如下: putExtra方法来完成。 这里就不再描述。 主要是传递对象类型数据。 1、实体类需要先序列化实现Serializable接口,利用Bundle.putSerializable(Key,Object);完成数据传递...
分类:移动开发   时间:2014-12-03 19:16:09    阅读次数:203
A,B两个活动间的数据传递
a,以A向B传递不带反回值为例 A活动中的跳转逻辑:/* 1.表示意图上下文 2.表示跳转的目标类 */Intent intent = new Intent(A.this,B.class);//数据传递函数是键值的形式1.数据标识2.数据本身intent.putExtra("",data);//不带...
分类:其他好文   时间:2014-12-01 22:18:28    阅读次数:206
关于Android中获取Intent里的数据
Intent获取数据和发送数据的办法://直接通过Intent发送intent.putExtra("name","wytings");//直接通过Intent接收String mName= intent.getStringExtra("name");//通过Bundle发送Bundle bundle...
分类:移动开发   时间:2014-11-28 00:51:54    阅读次数:297
Android中Intent传值
1 A页面: 2 Intent intent = new Intent(GrouponActivity.this, GroupBuyDetailsActivity.class);3 intent.putExtra("ID", entity.getID());...
分类:移动开发   时间:2014-11-25 09:10:22    阅读次数:161
android中使用intent来实现Activity带数据跳转
大家都知道startActivity()是用来切换跳转Activity的、如果想要在另个Activity中出书数据的话、只需要在源activity中使用intent.putExtra()方法传出数据、在对应activity中使用intent.get**Extra()方法接收数据就行了那么startA...
分类:移动开发   时间:2014-11-24 22:21:35    阅读次数:288
Android自定义系统分享面板
在Android中实现分享有一种比较方便的方式,调用系统的分享面板来分享我们的应用。最基本的实现如下: public Intent getShareIntent(){ Intent intent = new Intent(); intent.setAction(Intent.ACTION_SEND); intent.putExtra(Intent.EXTRA_TEXT, "这是测试分享...
分类:移动开发   时间:2014-11-17 17:55:36    阅读次数:248
Android调用前置摄像头的方法
之前在网上找到到好几种办法,发现要么不行要么太麻烦,现在提供一种比较方便简单地方法,在此记录一下:Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); intent.putExtra("android.intent.extras.C...
分类:移动开发   时间:2014-11-13 15:56:05    阅读次数:1910
181条   上一页 1 ... 13 14 15 16 17 ... 19 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!