I want to use a file to store purchased data. Since the app is going to be free and a certain amount of credits are given at the installation. What happens now is that if I
You can put files in a directory derived from Environment.getExternalStorageDirectory()
. These files will persist after an uninstall. However, a user can delete those files any time they like, regardless of whether your app is installed or not.
Other than that, there is no place on the device that you can place files that will survive an uninstall.