OS: Android 4.4.2 KitKat
How to find out the date of installation of the application in the smartphone Asus Zenfon 5 A501CG?
When you click on the button, it will log the list of all installed applications with the date of their first installation on this device.
MainActivity.class
public class MainActivity extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); } public void onBtnClick(View v) { List<PackageInfo> packageInfo = getPackageManager().getInstalledPackages(0); for(PackageInfo a:packageInfo){ Log.d(a.packageName, "Дата первой установки : " + convertTime(a.firstInstallTime)); } } String convertTime(long time){ SimpleDateFormat dateFormat = new SimpleDateFormat("HH:mm:ss dd MMMM yyyy"); return dateFormat.format(new Date(time)); } } Example:
D / com.viber.voip: Date of first installation: 13:57:33 05 October 2015
Source: https://ru.stackoverflow.com/questions/533162/
All Articles
/data/data/package? - pavel