Retrieve Android Device Manufactured date Programmatically?

独自空忆成欢 提交于 2019-12-07 08:27:22

问题


I need to find the Android Device manufactured Date through my code I have gone through the android.os.Build API But Didn't find such a method

is possible to get Android Device Manufactured Date or Not?


回答1:


You can use

Log.i("ManuFacturer :", Build.MANUFACTURER);
Log.i("Board : ", Build.BOARD);
Log.i("Diaply : ", Build.DISPLAY);

Here is the documentations of that: http://developer.android.com/reference/android/os/Build.html




回答2:


You can get the date the OS was installed.

Date osInstalledDate = new Date(Build.TIME);
Log.i("MW",  "time from Build.TIME = " + osInstalledDate .toString());

Unfortunately if they re-install the OS this won't work.




回答3:


The closest you can get to the Device is with the TelephonyManager.

TelephonyManager tm = (TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE);
Log.d("X", tm.getDeviceId() + ", " + tm.getDeviceSoftwareVersion());

There you get the IMEI, Software Version and some information about the current Cell and SIM card. But device depenedant date: no, not yet in Android.




回答4:


Presently there is no API in Android to get Android Device Manufactured Date. From Build.TIME you can get OS installation or up-gradation date.



来源:https://stackoverflow.com/questions/18956723/retrieve-android-device-manufactured-date-programmatically

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!