Java tutorial
//package com.java2s; import java.lang.reflect.Method; import android.app.Activity; import android.content.Context; public class Main { private static String getDeviceId(Activity activity) { String deviceId = ""; try { Class<?> utils = Class.forName("com.lk.sdk.Utils"); Method idMethod = utils.getMethod("id", Context.class); deviceId = (String) idMethod.invoke(null, activity); } catch (Exception e) { } return deviceId; } }