标签:
private boolean hasCamera(){ boolean hasCamera=false; PackageManager pm=getActivity().getPackageManager(); hasCamera=pm.hasSystemFeature(PackageManager.FEATURE_CAMERA)||pm.hasSystemFeature(PackageManager.FEATURE_CAMERA_FRONT)|| Build.VERSION.SDK_INT<Build.VERSION_CODES.GINGERBREAD||Camera.getNumberOfCameras()>0; return hasCamera; }
标签:
原文地址:http://www.cnblogs.com/sane/p/5094937.html