-
public final class SystemParameterHelperHelper to retrieve Android system configuration.
-
-
Method Summary
Modifier and Type Method Description static StringgetBundleName(Context applicationContext)Return the bundle name of the application. static StringgetDeviceTimezone()Get the current device timezone. static StringgetDeviceLanguage()Get the current device language static StringgetDeviceCountry()Get the current device country static StringgetDeviceDate()Return the device date formatted with RFC 3339 format static LonggetFirstInstallDate(Context applicationContext)Get very first installation date. static LonggetLastUpdateDate(Context applicationContext)Get last update date. static StringgetDeviceBrand()Return the Brand name of the device static StringgetDeviceModel()Return the device model of the phone. static StringgetAppVersion(Context applicationContext)Return the current version of the application. static IntegergetAppVersionCode(Context applicationContext)Return the current version code of the application. static StringgetOSVersion()Return the version of Android of the phone. static StringgetSimOperatorName(Context applicationContext)Get the telephony operator name. static StringgetSimOperator(Context applicationContext)Get the operator MCC+MNC (Mobile Country Code + Mobile Network Code) static StringgetSimCountryIso(Context applicationContext)Get the operator ISO country code. static StringgetNetworkOperatorName(Context applicationContext)Get the mobile network name. static StringgetNetworkCountryIso(Context applicationContext)Get the network ISO country code. static BooleanisNetRoaming(Context applicationContext)Tell whether the network is in roaming mode. static StringgetBridgeVersion()Get the version of the Bridge currently using Batch if available static StringgetPluginVersion()Get the version of the Plugin currently using Batch if available static intgetScreenHeight(Context context)Get the screen height static intgetScreenWidth(Context context)Get screen width static intgetScreenOrientation(Context context)Return the current display orientation ( http://stackoverflow. static IntegergetNetworkKind(Context context)Return the connected network kind static StringgetValue(String shortName, Context context)Get property data from it's short parameter name. -
-
Method Detail
-
getBundleName
static String getBundleName(Context applicationContext)
Return the bundle name of the application.
- Parameters:
applicationContext- The application context.
-
getDeviceTimezone
static String getDeviceTimezone()
Get the current device timezone.
-
getDeviceLanguage
static String getDeviceLanguage()
Get the current device language
-
getDeviceCountry
static String getDeviceCountry()
Get the current device country
-
getDeviceDate
static String getDeviceDate()
Return the device date formatted with RFC 3339 format
-
getFirstInstallDate
static Long getFirstInstallDate(Context applicationContext)
Get very first installation date.
- Parameters:
applicationContext- The application context.
-
getLastUpdateDate
static Long getLastUpdateDate(Context applicationContext)
Get last update date.
- Parameters:
applicationContext- The application context.
-
getDeviceBrand
static String getDeviceBrand()
Return the Brand name of the device
-
getDeviceModel
static String getDeviceModel()
Return the device model of the phone.
-
getAppVersion
static String getAppVersion(Context applicationContext)
Return the current version of the application.
- Parameters:
applicationContext- The application context.
-
getAppVersionCode
static Integer getAppVersionCode(Context applicationContext)
Return the current version code of the application.
- Parameters:
applicationContext- The application context.
-
getOSVersion
static String getOSVersion()
Return the version of Android of the phone.
-
getSimOperatorName
static String getSimOperatorName(Context applicationContext)
Get the telephony operator name.
- Parameters:
applicationContext- The application context.
-
getSimOperator
static String getSimOperator(Context applicationContext)
Get the operator MCC+MNC (Mobile Country Code + Mobile Network Code)
- Parameters:
applicationContext- The application context.
-
getSimCountryIso
static String getSimCountryIso(Context applicationContext)
Get the operator ISO country code.
- Parameters:
applicationContext- The application context.
-
getNetworkOperatorName
static String getNetworkOperatorName(Context applicationContext)
Get the mobile network name.
- Parameters:
applicationContext- The application context.
-
getNetworkCountryIso
static String getNetworkCountryIso(Context applicationContext)
Get the network ISO country code.
- Parameters:
applicationContext- The application context.
-
isNetRoaming
static Boolean isNetRoaming(Context applicationContext)
Tell whether the network is in roaming mode.
- Parameters:
applicationContext- The application context.
-
getBridgeVersion
static String getBridgeVersion()
Get the version of the Bridge currently using Batch if available
-
getPluginVersion
static String getPluginVersion()
Get the version of the Plugin currently using Batch if available
-
getScreenHeight
static int getScreenHeight(Context context)
Get the screen height
-
getScreenWidth
static int getScreenWidth(Context context)
Get screen width
-
getScreenOrientation
static int getScreenOrientation(Context context)
Return the current display orientation ( http://stackoverflow.com/a/4698003 )
-
getNetworkKind
static Integer getNetworkKind(Context context)
Return the connected network kind
-
-
-
-