|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.hermit.android.core.MainActivity.ActivityListener
public abstract static class MainActivity.ActivityListener
This interface defines a listener for sub-activity results.
Constructor Summary | |
---|---|
MainActivity.ActivityListener()
|
Method Summary | |
---|---|
void |
onActivityCanceled(Intent data)
Called when an activity you launched exits with a result code of RESULT_CANCELED. |
void |
onActivityFinished(int resultCode,
Intent data)
Called when an activity you launched exits. |
void |
onActivityResult(int resultCode,
Intent data)
Called when an activity you launched exits with a result code other than RESULT_CANCELED, giving you the resultCode it returned, and any additional data from it. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MainActivity.ActivityListener()
Method Detail |
---|
public void onActivityFinished(int resultCode, Intent data)
Applications can override this to be informed when an activity finishes, either by an error, the user pressing "back", or normally, or whatever. The default implementation calls either onActivityCanceled(), if resultCode == RESULT_CANCELED, or else onActivityResult().
resultCode
- The integer result code returned by the
child activity through its setResult().data
- Additional data returned by the activity.public void onActivityCanceled(Intent data)
Applications can override this if they want to be separately notified of a RESULT_CANCELED. It doesn't make sense to override both onActivityFinished() and this method.
data
- Additional data returned by the activity.public void onActivityResult(int resultCode, Intent data)
Applications can override this if they want to be separately notified of a normal exit. It doesn't make sense to override both onActivityFinished() and this method.
resultCode
- The integer result code returned by the
child activity through its setResult().data
- Additional data returned by the activity.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |