Java tutorial
//package com.java2s; import android.content.Context; public class Main { public static String getApplicationUserName(Context context, String s) { return (new StringBuilder()).append(s).append("_") .append(android.provider.Settings.Secure.getString(context.getContentResolver(), "android_id")) .toString(); } }