Android Device Version Check getDeviceId(Activity act)

Here you can find the source of getDeviceId(Activity act)

Description

get Device Id

Declaration

public static String getDeviceId(Activity act) 

Method Source Code

//package com.java2s;
import android.app.Activity;

import android.provider.Settings.Secure;

public class Main {
    public static String getDeviceId(Activity act) {
        String id = Secure.getString(act.getContentResolver(),
                Secure.ANDROID_ID);// w w w . j  a va  2 s.  c o m

        return id;
    }
}

Related

  1. hasJellyBeanMR2()
  2. getAndroidVersion()
  3. getAndroidBuildSerial()
  4. hasHoneycomb()
  5. GetSdkLevel()