码迷,mamicode.com
首页 >  
搜索关键字:mediastore    ( 79个结果
调用android的Camera 执行结果没有回调onActivityResult()
============问题描述============ 我调用android系统的camera:Uriuri=Uri.fromFile(newFile(imagepath)); Intentintent=newIntent(MediaStore.ACTION_IMAGE_CAPTURE); int...
分类:移动开发   时间:2014-10-22 00:35:26    阅读次数:223
Android开发之系统相机相册使用
获取图片后进行处理,对分辨率较大的进行缩放,较小的原图显示 1、调用系统相机 [java] view plaincopyprint? Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);// 调用系统相机   new DateFormat();   name = DateF...
分类:移动开发   时间:2014-10-21 19:43:01    阅读次数:310
使用系统默认接口来剪切图片
如果调用系统的图片接口: Intent intent = new Intent(Intent.ACTION_PICK, android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI); // intent.addCategory(Intent.CATEGORY_OPENABLE); // intent.setType(...
分类:其他好文   时间:2014-10-20 11:53:04    阅读次数:171
Cursor扫描本地音乐文件,英文名也出现乱码,怎么解决。
问题描述 扫描本地音乐文件并放入List的代码如下:publicListgetListByLocal(){ Cursorcursor=getContentResolver().query( MediaStore.Audio.Media.EXTERNAL_CONTENT_URI,null,n...
分类:其他好文   时间:2014-10-16 00:19:51    阅读次数:306
Android 调用系统相机拍照保存以及调用系统相册的方法
系统已经有的东西,如果我们没有新的需求的话,直接调用是最直接的。下面讲讲调用系统相机拍照并保存图片和如何调用系统相册的方法。首先看看调用系统相机的核心方法:Intent camera = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); startActivi...
分类:移动开发   时间:2014-10-06 02:33:19    阅读次数:161
调用android的Camera 执行结果没有回调onActivityResult()
====================问题描述==================== 我调用android系统的camera:Uriuri=Uri.fromFile(newFile(imagepath));Intentintent=newIntent(MediaStore.ACTION_IMAG...
分类:移动开发   时间:2014-09-30 19:40:49    阅读次数:190
播放器制作笔记----MediaStore
在最初的构思中,我使用的是File类递归遍历SD卡中的所有文件,然后筛选出以".mp3"格式结尾的文件,放入一个map.然后将map放入List,让media加载.但是,发现这样的方法耗时比较长,容易出现"卡住"的现象,然后就想将List永久化存到本地,但是发现如果有几百首歌的话,文件太大了,非常占内..
分类:其他好文   时间:2014-09-26 00:04:18    阅读次数:359
Android相机、相册获取图片显示(压缩)并保存到SD卡
做过类似需求的同学都知道,在Activity中通过如下代码可以启动相机,然后在重写的onActivityResult方法中可以获取到返回的照片数据:Intent openCameraIntent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);startA...
分类:移动开发   时间:2014-09-25 18:21:37    阅读次数:334
Android大图片裁剪之手机拍照和从相册中选择注意点
Intent("com.android.camera.action.CROP");中data、MediaStore.EXTRA_OUTPUT以及return-datadata:Parcelable类型 传入的数据类型MediaStore.EXTRA_OUTPUT:Uri类型自定义裁切输出的图片存储位...
分类:移动开发   时间:2014-09-18 20:21:54    阅读次数:406
android Uri获取真实路径转换成File的方法
Uri uri = data.getData();String[] proj = { MediaStore.Images.Media.DATA };Cursor actualimagecursor = managedQuery(uri,proj,null,null,null);int actual_...
分类:移动开发   时间:2014-08-01 04:45:11    阅读次数:291
79条   上一页 1 ... 5 6 7 8 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!