Get Android App Purchase Date

Let's say I have a paid app purchased by a user (I don't use In-app Billing). Can I run a piece of code on my device to get the date this user bought my app?

+3


source to share


1 answer


This is not a 100% answer to your question, but you can get the time and date of the first installation of the application

http://developer.android.com/reference/android/content/pm/PackageInfo.html#firstInstallTime



long installTime = context.getPackageManager()
                   .getPackageInfo("com.some.package.name", 0)
                   .firstInstallTime;

      

+3


source







All Articles