|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectandroid.content.Context
android.content.ContextWrapper
android.view.ContextThemeWrapper
android.app.Activity
de.msponer.android.yac.activities.images.CameraActivity
public class CameraActivity
Activity for taking pictures using the camera. Complete screen shows picture preview. On click/tap the picture will be taken and returned to the previous activity.
Field Summary |
---|
Fields inherited from class android.app.Activity |
---|
DEFAULT_KEYS_DIALER, DEFAULT_KEYS_DISABLE, DEFAULT_KEYS_SEARCH_GLOBAL, DEFAULT_KEYS_SEARCH_LOCAL, DEFAULT_KEYS_SHORTCUT, FOCUSED_STATE_SET, RESULT_CANCELED, RESULT_FIRST_USER, RESULT_OK |
Constructor Summary | |
---|---|
CameraActivity()
|
Method Summary | |
---|---|
String |
getImageBase64String(byte[] imageData,
int quality)
Decodes the bitmap and returns the resulting picture as BASE64 encoded string. |
void |
onClick(View arg0)
Takes a picture on click. |
void |
onCreate(Bundle icicle)
Initializes the activity. |
protected void |
onRestoreInstanceState(Bundle savedInstanceState)
|
protected void |
onSaveInstanceState(Bundle outState)
|
void |
surfaceChanged(SurfaceHolder holder,
int format,
int w,
int h)
Switch the preview orientation on surface changed. |
void |
surfaceCreated(SurfaceHolder holder)
Opens the camera preview. |
void |
surfaceDestroyed(SurfaceHolder holder)
Stops picture preview and releases the camera. |
Methods inherited from class android.view.ContextThemeWrapper |
---|
attachBaseContext, getTheme, setTheme |
Methods inherited from class android.content.Context |
---|
getString, getString, getText, obtainStyledAttributes, obtainStyledAttributes, obtainStyledAttributes, obtainStyledAttributes |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CameraActivity()
Method Detail |
---|
public void onCreate(Bundle icicle)
onCreate
in class Activity
protected void onRestoreInstanceState(Bundle savedInstanceState)
onRestoreInstanceState
in class Activity
protected void onSaveInstanceState(Bundle outState)
onSaveInstanceState
in class Activity
public void surfaceCreated(SurfaceHolder holder)
surfaceCreated
in interface SurfaceHolder.Callback
public void surfaceChanged(SurfaceHolder holder, int format, int w, int h)
surfaceChanged
in interface SurfaceHolder.Callback
public void surfaceDestroyed(SurfaceHolder holder)
surfaceDestroyed
in interface SurfaceHolder.Callback
public void onClick(View arg0)
onClick
in interface View.OnClickListener
public String getImageBase64String(byte[] imageData, int quality)
imageData
- The image data.quality
- The quality level (compression level).
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |