Back to project page FloatCamera.
The source code is released under:
Apache License
If you think the Android project FloatCamera listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.kenai.function.camera; /* w ww. jav a 2 s . c o m*/ import com.kenai.camera.CameraTake_pictureService; import android.content.Context; import android.content.Intent; import android.content.pm.PackageManager; public class XCamera { /** * ???????????? * @param context * @return */ public static boolean checkCameraHardware(Context context) { if (context.getPackageManager().hasSystemFeature( PackageManager.FEATURE_CAMERA)) { return true; // ?????? } else { return false; } } /** * ??????????????????????? * */ public static void take_picture(Context context) { context.startService(new Intent(context, CameraTake_pictureService.class)); } /** * ?????????????????????? * */ public static void face_picture(Context context) { context.sendOrderedBroadcast(new Intent("com.kenai.camera.face"), null); } }