|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface BetterActivity
Method Summary | ||
---|---|---|
android.content.Intent |
getCurrentIntent()
Retrieves the current intent that was used to create or resume this activity. |
|
int |
getWindowFeatures()
|
|
boolean |
isApplicationBroughtToBackground()
Android doesn't distinguish between your Activity being paused by another Activity of your own application, or by an Activity of an entirely different application. |
|
boolean |
isLandscapeMode()
|
|
boolean |
isLaunching()
|
|
boolean |
isPortraitMode()
|
|
boolean |
isRestoring()
|
|
boolean |
isResuming()
|
|
android.app.AlertDialog |
newAlertDialog(int titleResourceId,
int messageResourceId)
|
|
android.app.AlertDialog |
newErrorHandlerDialog(Exception error)
Creates a new error dialog, with the option to either dismiss or -- if an email application is installed -- report the given error. |
|
android.app.AlertDialog |
newErrorHandlerDialog(int titleResourceId,
Exception error)
Creates a new error dialog, with the option to either dismiss or -- if an email application is installed -- report the given error. |
|
android.app.AlertDialog |
newInfoDialog(int titleResourceId,
int messageResourceId)
|
|
|
newListDialog(String title,
List<T> listItems,
DialogClickListener<T> listener,
boolean closeOnSelect)
Creates a new list style dialog from a list of objects. |
|
android.app.AlertDialog |
newYesNoDialog(int titleResourceId,
int messageResourceId,
android.content.DialogInterface.OnClickListener listener)
|
|
void |
setProgressDialogMsgId(int progressDialogMsgId)
|
|
void |
setProgressDialogTitleId(int progressDialogTitleId)
|
Method Detail |
---|
int getWindowFeatures()
void setProgressDialogTitleId(int progressDialogTitleId)
void setProgressDialogMsgId(int progressDialogMsgId)
boolean isRestoring()
boolean isResuming()
boolean isLaunching()
boolean isApplicationBroughtToBackground()
android.content.Intent getCurrentIntent()
Intent
boolean isLandscapeMode()
boolean isPortraitMode()
android.app.AlertDialog newYesNoDialog(int titleResourceId, int messageResourceId, android.content.DialogInterface.OnClickListener listener)
android.app.AlertDialog newInfoDialog(int titleResourceId, int messageResourceId)
android.app.AlertDialog newAlertDialog(int titleResourceId, int messageResourceId)
android.app.AlertDialog newErrorHandlerDialog(int titleResourceId, Exception error)
Creates a new error dialog, with the option to either dismiss or -- if an email application is installed -- report the given error. Clicking the report button will cause the app to collect diagnostic information, compile it to a single text body, and launch the email application with the error report being preset as the email's body.
For this to work, you must define the following string resources in your application:
titleResourceId
- the string resource that should be used as the dialog titleerror
- the exception that should be displayed and/or reported
android.app.AlertDialog newErrorHandlerDialog(Exception error)
Creates a new error dialog, with the option to either dismiss or -- if an email application is installed -- report the given error. Clicking the report button will cause the app to collect diagnostic information, compile it to a single text body, and launch the email application with the error report being preset as the email's body.
For this to work, you must define the following string resources in your application:
error
- the exception that should be displayed and/or reported
<T> android.app.Dialog newListDialog(String title, List<T> listItems, DialogClickListener<T> listener, boolean closeOnSelect)
T
- the type of the list itemsdialogTitle
- the title or null to disable the titlelistItems
- the list itemslistener
- the listener used for processing list item clickscloseOnSelect
- if true, the dialog will close when an item has been clicked
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |