The app is crashing when I'm trying to open a file. I found the log

android.os.FileUriExposedException: file:///storage/emulated/0/test.txt 
exposed beyond app through Intent.getData()

I know the solution of this problem. I fixed in the newer version of the 
app. For new version of app, I used FileProvider for apk installation, but 
old version of app use Uri.*fromFile*(dest). 

Now the problem is the auto update of the app. I need to update app 
automatically from the old version of the app. When I tried to update new 
app it donload the app, but when try to install app it is crashing. Is 
there any way to install app from the old version of app?

NB: previous developer didn’t use play store for our app.

Thanks in advance

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/f8a6c933-349d-4f84-b5bb-85e88eaa79d2n%40googlegroups.com.

Reply via email to