Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import android.os.Build;
import android.os.Build.VERSION_CODES;

public class Main {
    public static String getBuildSerialId() {
        String deviceId = null;
        if (Build.VERSION.SDK_INT > VERSION_CODES.GINGERBREAD) {
            deviceId = Build.SERIAL;
        }
        return deviceId;
    }
}