- Jun 6, 2020
- 11,559
- 4,422
Code requires Android 5+
1. Set a custom WebViewChromeClient. It is implemented with inline Java code.
2. The ShowFile_Chooser event is raised when the user clicks on a "browse" button.
3. You need to get the file URI with FileProvider and call SendResult.
Example based on ContentChooser.
B4X:
Project is attached. Don't miss the manifest editor entries that are required for FileProvider.
Example of requesting the Geolocation permission...
1. Set a custom WebViewChromeClient. It is implemented with inline Java code.
2. The ShowFile_Chooser event is raised when the user clicks on a "browse" button.
3. You need to get the file URI with FileProvider and call SendResult.
Example based on ContentChooser.
B4X:
کد:
محتوای بلوک کدها در دسترس شما نیست. برای مشاهده بلوک کدها، وارد انجمن شوید یاثبت نام کنید
Project is attached. Don't miss the manifest editor entries that are required for FileProvider.
Example of requesting the Geolocation permission...
برای دیدن لینک ها باید ثبت نام کنید
برای دیدن لینک ها باید ثبت نام کنید