public final class DialogChangeLog extends Object
You can display a Change Log after app updates by putting the following code in your Activity's onCreate()
method:
DialogChangeLog changeLog = DialogChangeLog.newInstance(this);
if (changeLog.isFirstRun()) {
changeLog.getLogDialog().show();
}
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_CSS
Default CSS styles used to format the Change Log.
|
| Modifier and Type | Method and Description |
|---|---|
ChangeLog |
getChangeLog()
Get the
ChangeLog instance backing this DialogChangeLog. |
AlertDialog |
getFullLogDialog()
Get a dialog with the full Change Log.
|
AlertDialog |
getLogDialog()
Get the "What's New" dialog.
|
boolean |
isFirstRun()
Check if this is the first execution of this app version.
|
static DialogChangeLog |
newInstance(Context context)
Create an instance using the default CSS to format the Change Log.
|
static DialogChangeLog |
newInstance(Context context,
String css)
Create an instance using the supplied CSS to format the Change Log.
|
public static final String DEFAULT_CSS
public static DialogChangeLog newInstance(Context context)
public static DialogChangeLog newInstance(Context context, String css)
public ChangeLog getChangeLog()
ChangeLog instance backing this DialogChangeLog.public AlertDialog getLogDialog()
ChangeLog then the full log dialog is show.public AlertDialog getFullLogDialog()
public boolean isFirstRun()
true if this version of your app is started the first time.