Get android paid app purchase date

899 Views Asked by At

Let's assume I have a paid app purchased by a user (I don't use In-app Billing). Is it possible to execute a piece of code on his device to get the date at which this user has purchased my app?

1

There are 1 best solutions below

5
On

This isn't 100% answer to your question, but you can get the time and date of the first install of the app

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

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