Here you can find the source of getSeed(Context context)
private static char[] getSeed(Context context)
//package com.java2s; import android.content.Context; import android.content.pm.PackageManager; public class Main { private static char[] getSeed(Context context) { long installed = 0; try {/*from ww w . j av a2s . c o m*/ installed = context.getPackageManager().getPackageInfo( "edu.uoc.esquelet.app", 0).firstInstallTime; } catch (PackageManager.NameNotFoundException e) { e.printStackTrace(); } return Long.toString(installed).toCharArray(); } }