|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectActivity
org.cyberlab.activity.local.AbstractGeneralActivity<E>
E
- The type of the class extending this.public abstract class AbstractGeneralActivity<E>
Abstract class implementing common features needed by activities using the framework. ie. starting camera and fetching image from image library. The class use Generics allowing common handling of classes that extend this.
Field Summary | |
---|---|
protected static int |
CAMERA_ACTIVITY
|
protected static int |
DIALOG
|
protected boolean |
externalActivity
|
protected static int |
LIBRARY_ACTIVITY
|
protected java.io.File |
mCameraFile
|
protected Handler |
mHandler
Activity message handler. |
Constructor Summary | |
---|---|
AbstractGeneralActivity()
|
Method Summary | |
---|---|
protected abstract void |
cameraActivityResult()
Implement this method to handle the camera result. |
Handler |
getHandler()
Activity message handler. |
protected abstract void |
libraryActivityResult()
Implement this method to handle the result from picking an image from the devices built-in image library. |
protected void |
onActivityResult(int requestCode,
int resultCode,
Intent data)
|
protected void |
onCreate(Bundle savedInstanceState)
|
protected void |
onSaveInstanceState(Bundle outState)
|
protected void |
startCameraActivity()
Start camera activity |
protected void |
startImageLibraryActivity()
Start library activity |
abstract void |
threadFinished(int id)
Threads notifies the activity when they finish. |
protected abstract void |
updateDialog(int id,
Bundle args)
Update a dialog. |
protected void |
updateDialogMessage(ProgressDialog dialog,
java.lang.CharSequence message)
Updates message of dialog |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final int CAMERA_ACTIVITY
protected static final int LIBRARY_ACTIVITY
protected static final int DIALOG
protected final Handler mHandler
protected java.io.File mCameraFile
protected boolean externalActivity
Constructor Detail |
---|
public AbstractGeneralActivity()
Method Detail |
---|
public Handler getHandler()
public abstract void threadFinished(int id)
id
- Thread idprotected abstract void cameraActivityResult()
protected abstract void libraryActivityResult()
protected abstract void updateDialog(int id, Bundle args)
id
- of dialogargs
- Message to dialogprotected void onActivityResult(int requestCode, int resultCode, Intent data)
protected void onCreate(Bundle savedInstanceState)
protected void onSaveInstanceState(Bundle outState)
protected void startCameraActivity()
protected void startImageLibraryActivity()
protected void updateDialogMessage(ProgressDialog dialog, java.lang.CharSequence message)
dialog
- The dialog to updatemessage
- The new message
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |