You shouldn’t do that, you shouldn’t force the users to keep data on their phones without their consent.
Anyway, application data directory will be deleted after uninstall, but NOT after an update
The only way to have persistent data is to use the SD card, but again, users won’t like to have the data on their card after the app is uninstalled
Or you can consider:
- Storing the data on a remote server with some kind of authentication to retrieve it
- Using Data Backup service