In my application I created a file in sdcard, now when I uninstalled application the file which is created by application is still exist on sdcard.so each time after uninstalling application I have to delete that file manually.
But I want that file is also deleted after uninstalling application. So, where I have to save that file, so it will be deleted automatically after Uninstalling application.
Life is easy because we write the source code.....
1. If the file is small, you could save the file in application's memory: the file will be saved in apps>your package folder and when the package is removed the file would be too.
2. You could delete the file from SD card when your application terminates.
3. Use Preferences API, if possible.