
android intent
文章平均质量分 78
zwq1457
这个作者很懒,什么都没留下…
展开
-
android_intent和intent_action大全
1.从google搜索内容 Intent intent = new Intent(); intent.setAction(Intent.ACTION_WEB_SEARCH); intent.putExtra(SearchManager.QUERY,"searchString") startActivity(intent); 2.浏览网页 Uri uri = Uri.pars原创 2012-12-10 17:33:15 · 540 阅读 · 0 评论 -
Android通过Intent发送电子邮件含附件
如何在Android系统中发送带附件的电子邮件呢? 其实通过Intent可以很方便的发送Email,只需要短短10行代码就可以处理,这里Android开发网就以在sdcard上的android123.cwj文件为例,通过Intent来发送电子邮件。完整代码如下File file = new File("\sdcard\android123.cwj"); //附件文件地址 Intent in转载 2012-12-20 14:32:50 · 9387 阅读 · 0 评论 -
Android通过intent发送彩信
在手机应用程序中,基本上大多都需要提供发送彩信、蓝牙共享等文件传输功能。android提供应用程序之可以互相调用的功能,为我们开发文件传输功能节省了很多时间。 只需要在触发事件里放入以下代码1.5以上版本的android系统为自动提示用户选择文件传输的方式,其中有短彩信、电子邮件、蓝牙。例如: Uri uri = Uri.parse("file:///sd原创 2012-12-20 14:54:06 · 2318 阅读 · 0 评论 -
Android中通过Intent 调用图片、视频、音频、录音、拍照
//选择图片 requestCode 返回的标识Intent intent = new Intent(Intent.ACTION_GET_CONTENT); //"android.intent.action.GET_CONTENT"intent.setType(contentType); //查看类型 String IMAGE_UNSPECIFIED = "image/*";Inten转载 2012-12-20 15:22:15 · 797 阅读 · 0 评论