Android的getsupportedvideosizes返回的模拟器空 [英] Android getsupportedvideosizes returns null on emulator

查看:220
本文介绍了Android的getsupportedvideosizes返回的模拟器空的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图让支持的视频大小如下面的仿真器,但它总是返回null.Why是这样吗?我曾在4.03.Thanks提前

 摄像头摄像头= Camera.open();
    android.hardware.Camera.Parameters PARAMS = camera.getParameters();
    supportedPicSizes = params.getSupportedVideoSizes();
    如果(supportedPicSizes == NULL){
        Log.i(***** supportedVideoSize *****,***** ****空);
    }
 

解决方案

这是一个的称为Android的错误

这仍然没有确定,但事实上,它是bug跟踪系统上可能意味着谷歌已经计划通过才能看到它。

I have tried to get the supported video size as below in an emulator but it always return null.Why it is so?I have tried in 4.03.Thanks in advance

 Camera camera=Camera.open();
    android.hardware.Camera.Parameters params = camera.getParameters();
    supportedPicSizes = params.getSupportedVideoSizes();
    if (supportedPicSizes==null){
        Log.i("*****supportedVideoSize*****", "*****Null****"); 
    }

解决方案

This is a known Android bug.

This still hasn't been fixed yet but the fact that it is on the bug tracking system probably means that Google has plans to see it through.

这篇关于Android的getsupportedvideosizes返回的模拟器空的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆