Android Open Source - FloatCamera X Camera






From Project

Back to project page FloatCamera.

License

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.

Java Source Code

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);
    }
    
}




Java Source Code List

cc.kenai.mainlib.face.XFace.java
com.kenai.camera.CameraBroadcast.java
com.kenai.camera.CameraEnv.java
com.kenai.camera.CameraFaceService.java
com.kenai.camera.CameraPreview.java
com.kenai.camera.CameraService.java
com.kenai.camera.CameraTake_pictureService.java
com.kenai.camera.CameraTime.java
com.kenai.camera.KenaiActivity.java
com.kenai.camera.KenaiBroadcast.java
com.kenai.camera.KenaiService.java
com.kenai.camera.PushMessageReceiver.java
com.kenai.camera.StatebarService.java
com.kenai.function.camera.XCamera.java