Android - Is this possible to get android device's system configuration? -


i device's system configuration information including ram, rom, external memory, processor details in app running. begineer, please started?

first of all, have @ these "build" class @ android-sdk page: http://developer.android.com/reference/android/os/build.html.

// device model string phonemodel = android.os.build.model;  // android version string androidversion = android.os.build.version.release; 

eg:

public string getdevicename() {      string manufacturer = build.manufacturer;     string model = build.model;      if (model.startswith(manufacturer)) {         return capitalize(model);     } else {         return capitalize(manufacturer) + " " + model;     } }  private string getandroidversion() {     return android.os.build.version.release; }  private string capitalize(string s) {     if (s == null || s.length() == 0) {         return "";     }     char first = s.charat(0);     if (character.isuppercase(first)) {         return s;     } else {         return character.touppercase(first) + s.substring(1);     } }  private string getdeviceid() {     string deviceid = "";     final telephonymanager mtelephony = (telephonymanager) getsystemservice(context.telephony_service);     if (mtelephony.getdeviceid() != null) {         deviceid = mtelephony.getdeviceid();     } else {         deviceid = secure.getstring(getapplicationcontext()                 .getcontentresolver(), secure.android_id);     }     return deviceid; } 

Comments

Popular posts from this blog

how to proxy from https to http with lighttpd -

android - Automated my builds -

python - Flask migration error -