|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.hermit.android.core.AppUtils
public class AppUtils
This class provides some simple application-related utilities.
Nested Class Summary | |
---|---|
static class |
AppUtils.Detail
Version info detail level. |
class |
AppUtils.Version
Information on an application version. |
Method Summary | |
---|---|
AppUtils.Version |
getAppVersion()
Get the version info for the current app. |
static AppUtils |
getInstance(Activity parent)
Get the app utils instance for this Activity. |
java.lang.String |
getVersionString()
Get a string containing the name and version info for the current app's package, in a simple format. |
java.lang.String |
getVersionString(AppUtils.Detail detail)
Get a string containing the name and version info for the current app's package. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static AppUtils getInstance(Activity parent)
parent
- Activity for which we want information.
public AppUtils.Version getAppVersion()
public java.lang.String getVersionString()
public java.lang.String getVersionString(AppUtils.Detail detail)
detail
- How much detail we want.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |