Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

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

import android.provider.Settings.Secure;

public class Main {
    public static String GetDeviceID(Activity nativeactivityptr) {
        // This ID will remain constant for this device until a factory reset is performed
        String uuid = Secure.getString(nativeactivityptr.getContentResolver(), Secure.ANDROID_ID);
        return uuid;
    }
}