R ronell Well-Known Member Licensed User Longtime User Jun 22, 2018 #1 is this related to this? Starting from Android 7 (API 24) it is no longer possible to pass a file uri with an intent. We must use FileProvider to share the APK file. It requires the following steps (source: https://www.b4x.com/android/forum/threads/share-txt-files.73166/#post-464921): Click to expand... is there a way to make <input type="file"> work again on targetsdk = 26? thanks Ronell
is this related to this? Starting from Android 7 (API 24) it is no longer possible to pass a file uri with an intent. We must use FileProvider to share the APK file. It requires the following steps (source: https://www.b4x.com/android/forum/threads/share-txt-files.73166/#post-464921): Click to expand... is there a way to make <input type="file"> work again on targetsdk = 26? thanks Ronell
Erel B4X founder Staff member Licensed User Longtime User Jun 24, 2018 #2 Does it work if you set targetSdkVersion to 23? What happens when it doesn't work? Generally speaking, you should always prefer native solutions over WebView based solutions. Upvote 0
Does it work if you set targetSdkVersion to 23? What happens when it doesn't work? Generally speaking, you should always prefer native solutions over WebView based solutions.
R ronell Well-Known Member Licensed User Longtime User Jun 24, 2018 #3 Erel said: What happens when it doesn't work? Click to expand... nothing happens when you press "choose file" button, no error in logs Erel said: Does it work if you set targetSdkVersion to 23? Click to expand... yes it works Erel said: Generally speaking, you should always prefer native solutions over WebView based solutions. Click to expand... im working on it , just want to know if there is a solution to this issue Upvote 0
Erel said: What happens when it doesn't work? Click to expand... nothing happens when you press "choose file" button, no error in logs Erel said: Does it work if you set targetSdkVersion to 23? Click to expand... yes it works Erel said: Generally speaking, you should always prefer native solutions over WebView based solutions. Click to expand... im working on it , just want to know if there is a solution to this issue
Erel B4X founder Staff member Licensed User Longtime User Jun 25, 2018 #4 The implementation of file uploads with WebView is quite complicated as it different in different versions of Android. This looks like a good resource if someone wants to create a library for this: https://github.com/mgks/Os-FileUp/blob/master/app/src/main/java/com/inf/os/fileup/MainActivity.java Upvote 0
The implementation of file uploads with WebView is quite complicated as it different in different versions of Android. This looks like a good resource if someone wants to create a library for this: https://github.com/mgks/Os-FileUp/blob/master/app/src/main/java/com/inf/os/fileup/MainActivity.java