Java Code Examples for android.os.Build#TIME
The following examples show how to use
android.os.Build#TIME .
These examples are extracted from open source projects.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source Project: AutoCrashReporter File: AutoErrorReporter.java License: Apache License 2.0 | 6 votes |
private void recordInformations(Context context) { try { PackageManager pm = context.getPackageManager(); PackageInfo pi; // Version pi = pm.getPackageInfo(context.getPackageName(), 0); versionName = pi.versionName; //buildNumber = currentVersionNumber(context); // Package name packageName = pi.packageName; // Device model phoneModel = Build.MODEL; // Android version androidVersion = Build.VERSION.RELEASE; board = Build.BOARD; brand = Build.BRAND; device = Build.DEVICE; display = Build.DISPLAY; fingerPrint = Build.FINGERPRINT; host = Build.HOST; id = Build.ID; model = Build.MODEL; product = Build.PRODUCT; manufacturer = Build.MANUFACTURER; tags = Build.TAGS; time = Build.TIME; type = Build.TYPE; user = Build.USER; } catch (Exception e) { e.printStackTrace(); } }
Example 2
Source Project: CrashReporter File: AppUtils.java License: Apache License 2.0 | 5 votes |
public static String getDeviceDetails(Context context) { return "Device Information\n" + "\nDEVICE.ID : " + getDeviceId(context) + "\nUSER.ID : " + getUserIdentity(context) + "\nAPP.VERSION : " + getAppVersion(context) + "\nLAUNCHER.APP : " + getCurrentLauncherApp(context) + "\nTIMEZONE : " + timeZone() + "\nVERSION.RELEASE : " + Build.VERSION.RELEASE + "\nVERSION.INCREMENTAL : " + Build.VERSION.INCREMENTAL + "\nVERSION.SDK.NUMBER : " + Build.VERSION.SDK_INT + "\nBOARD : " + Build.BOARD + "\nBOOTLOADER : " + Build.BOOTLOADER + "\nBRAND : " + Build.BRAND + "\nCPU_ABI : " + Build.CPU_ABI + "\nCPU_ABI2 : " + Build.CPU_ABI2 + "\nDISPLAY : " + Build.DISPLAY + "\nFINGERPRINT : " + Build.FINGERPRINT + "\nHARDWARE : " + Build.HARDWARE + "\nHOST : " + Build.HOST + "\nID : " + Build.ID + "\nMANUFACTURER : " + Build.MANUFACTURER + "\nMODEL : " + Build.MODEL + "\nPRODUCT : " + Build.PRODUCT + "\nSERIAL : " + Build.SERIAL + "\nTAGS : " + Build.TAGS + "\nTIME : " + Build.TIME + "\nTYPE : " + Build.TYPE + "\nUNKNOWN : " + Build.UNKNOWN + "\nUSER : " + Build.USER; }
Example 3
Source Project: DevUtils File: DeviceUtils.java License: Apache License 2.0 | 2 votes |
/** * 获取设备时间 * @return 设备时间 */ public static long getTime() { return Build.TIME; }
Example 4
Source Project: easydeviceinfo File: EasyDeviceMod.java License: Apache License 2.0 | 2 votes |
/** * Gets build time. * * @return the build time */ public final long getBuildTime() { return Build.TIME; }