Android Open Source - android_bluetooth Common

From Project

Back to project page android_bluetooth.


The source code is released under:

MIT License

If you think the Android project android_bluetooth listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.jayin.utils;
/*  w  ww.j  av  a2  s.  co m*/
import java.util.UUID;

import android.content.Context;
import android.telephony.TelephonyManager;

public class Common {
     * ????uuid???
     * @param context
     * @return uuid obj
  public static UUID getUUID(Context context) {
    TelephonyManager tm = (TelephonyManager) context
    String uniqueId = tm.getDeviceId();
    UUID deviceUuid = new UUID(uniqueId.hashCode(), 64);
    return deviceUuid;

Java Source Code List