// Get Model Name
import android.os.Build;
Build.MODEL
// Get Device ID
import android.provider.Settings.Secure;
Secure.getString(getContentResolver(), Secure.ANDROID_ID);
// Get app version name
String versionName = "0";
try
{
versionName = getPackageManager().getPackageInfo(getPackageName(), 0).versionName;
}
catch(NameNotFoundException e)
{}
import android.os.Build;
Build.MODEL
// Get Device ID
import android.provider.Settings.Secure;
Secure.getString(getContentResolver(), Secure.ANDROID_ID);
// Get app version name
String versionName = "0";
try
{
versionName = getPackageManager().getPackageInfo(getPackageName(), 0).versionName;
}
catch(NameNotFoundException e)
{}
沒有留言:
張貼留言