|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.burstly.presence.InstalledAppTracker
public class InstalledAppTracker
InstalledAppTracker is a simple class which uses static functions to get information on installed applications.
Constructor Summary | |
---|---|
InstalledAppTracker()
|
Method Summary | |
---|---|
static java.util.HashMap<java.lang.String,AppInfo> |
checkInstalledApps(Context oContext,
java.lang.String[] aAppPackages)
checkInstalledApps(Context, String[]) checks the install state of the packages specified in the String[] |
static java.lang.String |
createPubTargettingString(java.util.HashMap<java.lang.String,AppInfo> oAppInfo)
Generates a pub targeting String. |
static java.lang.String[] |
downloadPackageNames(java.lang.String sID)
downloadPackageNames gets a String[] containing the package names associated with an org ID |
static java.lang.Thread |
getPackageNamesAndCheckIstallAsync(Context oContext,
java.lang.String sID,
IInstalledAppListener oListener)
Begins an Async task which will retrieve the package names associated with an org ID and check their install state. Results received through the IInstalledAppListener interface. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public InstalledAppTracker()
Method Detail |
---|
public static java.lang.String[] downloadPackageNames(java.lang.String sID)
String
- The organisation IDpublic static java.lang.Thread getPackageNamesAndCheckIstallAsync(Context oContext, java.lang.String sID, IInstalledAppListener oListener)
Context
- The current contextString
- The organisation IDIInstalledAppListener
- The delegate which will receive a completion callback via IInstalledAppListener.downloadPackageNamesComplete
public static java.util.HashMap<java.lang.String,AppInfo> checkInstalledApps(Context oContext, java.lang.String[] aAppPackages)
Context
- An android application contextString[]
- An array of Strings containing the package names whose install status is to be checked
public static java.lang.String createPubTargettingString(java.util.HashMap<java.lang.String,AppInfo> oAppInfo)
checkInstalledApps(Context, String[])
to generate a string which can be passed to BurstlyView.setPubTargetingParams
HashMap
- generated by checkInstalledApps(Context, String[])
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |