Install time for Android application?

后端 未结 3 923
迷失自我
迷失自我 2021-01-15 05:44

Is there any way to determine programmatically the time at which an Android application was installed? I don\'t see anything in PackageInfo, etc.

--EDIT-- To clarify

3条回答
  •  离开以前
    2021-01-15 06:10

    are you trying to find the time when YOUR app was installed, or other apps? If you are only interested in your own app, you can add functionality to your app that checks if this is the first time the app has been run. if it is, get the system time and save it in a file/database. then whenever you want it, you can open the file/query the database for it.

    Was this helpful?

提交回复
热议问题