-1

I write an android app and i want make 30 days trial version to test next if user like to continue with app he had to buy ( inApp purchase ) . how can i make this feature without webserver

2 Answers2

0

You can make one app for both (trial and complete) and use the Market/Play API to see if the user has paid for the product (using in app billing) and try to use a resource/file/database (I guess the file is the better option, but need to test the uninstall behave) to flag when the user has started using the app.

Eldius
  • 310
  • 2
  • 4
0

You can create a file on SD card that should be updated accordingly when app is opened. You can do so using shared preferences also but re-installing app will reset your counter of days or what ever logic you will use. you can hide file and use some encryption to make it less susceptible to hack.

Sachin Chandil
  • 17,133
  • 8
  • 47
  • 65