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.Secure;

public class Main {
    /**
     * get a unique identifier for this android device
     * @param ctx
     */
    public static String getUniqueDeviceId(Context ctx) {
        return Secure.getString(ctx.getContentResolver(), Secure.ANDROID_ID);
    }
}