Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 623
Laurent Avatar asked Nov 01 '22 19:11

Laurent


1 Answers

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;
like image 83
Blundell Avatar answered Nov 15 '22 04:11

Blundell