public final class CameraHelper
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
REQUEST_IMAGE_CAPTURE
The Constant REQUEST_IMAGE_CAPTURE.
|
static int |
REQUEST_PERMISSION
The Constant REQUEST_PERMISSION.
|
Constructor and Description |
---|
CameraHelper(android.app.Activity activity)
Provides convenience access to device camera.
|
Modifier and Type | Method and Description |
---|---|
void |
dispatchTakePictureIntent()
Starts an activity using the device's onboard camera app.
|
android.graphics.Bitmap |
getBitmap(int resultCode)
This method returns a bitmap of the photo that was taken.
|
java.io.File |
getFile(int resultCode)
This method returns the file of the photo that was taken.
|
public static final int REQUEST_IMAGE_CAPTURE
public static final int REQUEST_PERMISSION
public CameraHelper(android.app.Activity activity)
activity
- The current activitypublic void dispatchTakePictureIntent()
public java.io.File getFile(int resultCode)
resultCode
- Result Code of the previous activitypublic android.graphics.Bitmap getBitmap(int resultCode)
resultCode
- Result Code of the previous activity