Android Open Source - FloatCamera Camera Broadcast






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.camera;
/*from   w w w. j a  v  a 2s  .c  om*/

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;

public class CameraBroadcast extends BroadcastReceiver {
  Context context;

  @Override
  public void onReceive(Context context, Intent intent) {
    this.context = context;
    if(intent.getAction().equals("com.kenai.camera.face")){
      context.startService(new Intent(context,CameraFaceService.class));
      abortBroadcast();
    }
    if (intent.getAction().equals("com.kenai.camera.take_picture")) {
      context.startService(new Intent(context,
          CameraTake_pictureService.class));
      abortBroadcast();
    }
  }

  
}




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