List of usage examples for android.os Build MANUFACTURER
String MANUFACTURER
To view the source code for android.os Build MANUFACTURER.
Click Source Link
From source file:org.roman.findme.RegistrationIntentService.java
@SuppressWarnings("deprecation") private void sendRegistrationToServer(String token) { String device = Build.MANUFACTURER.toUpperCase() + "-" + Build.MODEL + "_" + " " + Build.VERSION.SDK_INT; String uid = Build.SERIAL;/* w ww .ja va 2 s .co m*/ Log.i("TAG", "android.os.Build.SERIAL: " + Build.SERIAL); Log.d(TAG, "uid " + uid); List<NameValuePair> nameValuePairs = new ArrayList<NameValuePair>(); nameValuePairs.add(new BasicNameValuePair("token", token)); nameValuePairs.add(new BasicNameValuePair("action", "register")); nameValuePairs.add(new BasicNameValuePair("device", device)); nameValuePairs.add(new BasicNameValuePair("uid", uid)); makeResponse(nameValuePairs); }
From source file:info.martinmarinov.dvbdriver.ExceptionDialog.java
private String getConstants() { StringBuilder res = new StringBuilder(); res.append("Last Device: ").append(lastDeviceDebugString).append('\n'); res.append("Build.MANUFACTURER: ").append(Build.MANUFACTURER).append('\n'); res.append("Build.MODEL: ").append(Build.MODEL).append('\n'); res.append("Build.PRODUCT: ").append(Build.PRODUCT).append('\n'); res.append("Build.VERSION.SDK_INT: ").append(Build.VERSION.SDK_INT).append('\n'); res.append("Build.VERSION.RELEASE: ").append(Build.VERSION.RELEASE).append('\n'); try {//from w ww . j a v a 2s . co m PackageInfo packageInfo = getContext().getPackageManager().getPackageInfo(getContext().getPackageName(), 0); res.append("Driver versionName: ").append(packageInfo.versionName).append('\n'); res.append("Driver versionCode: ").append(packageInfo.versionCode).append('\n'); } catch (PackageManager.NameNotFoundException e) { e.printStackTrace(); } return res.toString(); }
From source file:at.wada811.dayscounter.CrashExceptionHandler.java
/** * JSON??//from w w w . j a va 2 s . c om * * @return * * @throws JSONException */ public static JSONObject getBuildInfo() { JSONObject json = new JSONObject(); try { json.put("BRAND", Build.BRAND); // ?????(docomo) json.put("MODEL", Build.MODEL); // ????(SO-01C) json.put("DEVICE", Build.DEVICE); // ???(SO-01C) json.put("MANUFACTURER", Build.MANUFACTURER); // ??(Sony Ericsson) json.put("VERSION.SDK_INT", Build.VERSION.SDK_INT); // ??(10) json.put("VERSION.RELEASE", Build.VERSION.RELEASE); // ????(2.3.4) } catch (JSONException e) { e.printStackTrace(); } return json; }
From source file:count.ly.messaging.CrashDetails.java
/** * Returns the current device manufacturer. */ static String getManufacturer() { return android.os.Build.MANUFACTURER; }
From source file:com.wso2.mobile.mdm.api.DeviceInfo.java
public String getDeviceManufacturer() { manufacturer = Build.MANUFACTURER; return manufacturer; }
From source file:org.linphone.setup.EchoCancellerCalibrationFragment.java
private void sendEcCalibrationResult(EcCalibratorStatus status, int delayMs) { try {// w w w . j av a 2s . com XMLRPCClient client = new XMLRPCClient(new URL(getString(R.string.wizard_url))); XMLRPCCallback listener = new XMLRPCCallback() { Runnable runFinished = new Runnable() { public void run() { SetupActivity.instance().isEchoCalibrationFinished(); } }; public void onResponse(long id, Object result) { mHandler.post(runFinished); } public void onError(long id, XMLRPCException error) { mHandler.post(runFinished); } public void onServerError(long id, XMLRPCServerException error) { mHandler.post(runFinished); } }; Boolean hasBuiltInEchoCanceler = LinphoneManager.getLc().hasBuiltInEchoCanceler(); Log.i("Add echo canceller calibration result: manufacturer=" + Build.MANUFACTURER + " model=" + Build.MODEL + " status=" + status + " delay=" + delayMs + "ms" + " hasBuiltInEchoCanceler " + hasBuiltInEchoCanceler); client.callAsync(listener, "add_ec_calibration_result", Build.MANUFACTURER, Build.MODEL, status.toString(), delayMs, hasBuiltInEchoCanceler); } catch (Exception ex) { } }
From source file:cc.metapro.openct.utils.CrashHandler.java
private void dumpPhoneInfo(PrintWriter pw) throws PackageManager.NameNotFoundException { PackageManager pm = mContext.getPackageManager(); PackageInfo pi = pm.getPackageInfo(mContext.getPackageName(), PackageManager.GET_ACTIVITIES); pw.print("OpenCT Version: "); pw.print(pi.versionName);// w w w. j av a2 s .c o m pw.print("_"); pw.println(pi.versionCode); pw.print("OS Version: "); pw.print(Build.VERSION.RELEASE); pw.print("_"); pw.println(Build.VERSION.SDK_INT); pw.print("Vendor: "); pw.println(Build.MANUFACTURER); pw.print("Model: "); pw.println(Build.MODEL); }
From source file:altermarkive.uploader.Report.java
private static JSONObject reportDevice(Context context) throws JSONException { JSONObject device = new JSONObject(); device.put("id", hash(id(context))); device.put("manufacturer", Build.MANUFACTURER); device.put("brand", Build.BRAND); device.put("product", Build.PRODUCT); device.put("model", Build.MODEL); device.put("design", Build.DEVICE); device.put("board", Build.BOARD); device.put("hardware", Build.HARDWARE); device.put("build", Build.FINGERPRINT); return device; }
From source file:com.fallahpoor.infocenter.fragments.GeneralFragment.java
private ArrayList<String> getSubItemsArrayList() { return new ArrayList<>(Arrays.asList(new String[] { Build.MANUFACTURER, Build.BRAND, Build.DEVICE, Build.BOOTLOADER, Build.DISPLAY, Build.FINGERPRINT, getDeviceID(), Build.SERIAL, getRadioFirmwareVersion(), getFormattedUptime() })); }
From source file:com.apptentive.android.sdk.storage.DeviceManager.java
private static Device generateNewDevice(Context context) { Device device = new Device(); // First, get all the information we can load from static resources. device.setOsName("Android"); device.setOsVersion(Build.VERSION.RELEASE); device.setOsBuild(Build.VERSION.INCREMENTAL); device.setOsApiLevel(String.valueOf(Build.VERSION.SDK_INT)); device.setManufacturer(Build.MANUFACTURER); device.setModel(Build.MODEL);//from w w w . ja v a 2s . co m device.setBoard(Build.BOARD); device.setProduct(Build.PRODUCT); device.setBrand(Build.BRAND); device.setCpu(Build.CPU_ABI); device.setDevice(Build.DEVICE); device.setUuid(GlobalInfo.androidId); device.setBuildType(Build.TYPE); device.setBuildId(Build.ID); // Second, set the stuff that requires querying system services. TelephonyManager tm = ((TelephonyManager) (context.getSystemService(Context.TELEPHONY_SERVICE))); device.setCarrier(tm.getSimOperatorName()); device.setCurrentCarrier(tm.getNetworkOperatorName()); device.setNetworkType(Constants.networkTypeAsString(tm.getNetworkType())); // Finally, use reflection to try loading from APIs that are not available on all Android versions. device.setBootloaderVersion(Reflection.getBootloaderVersion()); device.setRadioVersion(Reflection.getRadioVersion()); device.setLocaleCountryCode(Locale.getDefault().getCountry()); device.setLocaleLanguageCode(Locale.getDefault().getLanguage()); device.setLocaleRaw(Locale.getDefault().toString()); device.setUtcOffset(String.valueOf((TimeZone.getDefault().getRawOffset() / 1000))); return device; }