Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import android.content.Context;

import android.provider.Settings;

public class Main {
    private static String sAndroidID;

    public final static String getUUid(Context applicationCtx) {
        if (sAndroidID != null) {
            return sAndroidID;
        }

        sAndroidID = Settings.System.getString(applicationCtx.getContentResolver(), Settings.System.ANDROID_ID);
        return sAndroidID;
    }
}