Laurent
Laurent

Reputation: 14401

Get android paid app purchase date

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?

Upvotes: 5

Views: 916

Answers (1)

Blundell
Blundell

Reputation: 76468

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;

Upvotes: 2

Related Questions