I want the first install time on android version 2.2. I have done in android 2.3, how to do in android 2.2 Here is my code
try
{
long installed = context.getPackageManager().getPackageInfo("com.simsys.securex", 0).firstInstallTime;
String DateTimeStamp=getDate(installed, "dd/MM/yyyy hh:mm:ss");
String dateTimeSync="Installed_Date:";
String dateTimeSync2=dateTimeSync.concat(DateTimeStamp);
TextView txtCurrentTime= (TextView)findViewById(R.id.textViewdatetime);
txtCurrentTime.setText(dateTimeSync2);
}
catch (NameNotFoundException e)
{
e.printStackTrace();
}