Android Webiew does not load indexed Sdcard file sdcard

–2 votes

When attempting to use mobile browsers to access (file:/sdcard/) (ex. Firefox, Opera ..etc). It displays an SDCard index page for me (see the screenshot).

enter image description here

However, when I access the same URL using a webview and give it storage permission and does not show the Index page.

Any help?

Nov 8, 2022 in Android by Edureka
• 13,620 points
1 flag 26,959 views
Abhishek Kumar Rajwar

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
0 votes
The code is simply a web view that receives an edit text URL If you pass the url file:/sdcard after running webView.loadUrl(editText.getText().toString()); it will not work. Additionally, you can test the URL in an Android emulator using Chrome for Android 10 or 11. My Samsung mobile has it working for me. When requested, make sure to provide storage permission.
answered Nov 9, 2022 by Edureka
• 12,690 points

edited Mar 5
0 votes
Hello edureka.co webmaster, You always provide in-depth analysis and understanding.
answered Feb 19, 2023 by Harris Sleep

edited Mar 5
0 votes
gdhcjfihfjcic
answered Feb 26, 2023 by anonymous

edited Mar 5
0 votes
No Tell me please
answered Mar 26, 2023 by anonymous

edited Mar 5
0 votes
I'm always without you
answered Mar 31, 2023 by anonymous

edited Mar 5
0 votes
Thank you JESUS CHRIST MY LORD SON OF LIVING GOD
answered Jan 1, 2024 by johnjamesna

edited Mar 5
0 votes
Gajdvdbxvvsvdbdhjbdhdzvxvhhhbbcb
answered Jan 7 by Gaurav

edited Mar 6

Related Questions In Android

0 votes
0 answers

Android Open External Storage directory(sdcard) for storing file

For programmatic file saving, I want to ...READ MORE

Sep 21, 2022 in Android by Edureka
• 13,620 points
1,164 views
0 votes
1 answer

Why YouTube Player API does not work on Android 11?

The Android 11 package visibility limitations prevent ...READ MORE

answered Nov 15, 2022 in Android by Edureka
• 13,620 points
2,333 views
0 votes
0 answers

How to make grid view scroll horizontally not vertically in android?

I use a flexible Grid View. means ...READ MORE

Sep 21, 2022 in Android by Edureka
• 13,620 points
717 views
0 votes
0 answers

Error: Could not initialize class com.android.sdklib.repository.AndroidSdkHandler

I've prepared the Windows environment for react ...READ MORE

Sep 21, 2022 in Android by Edureka
• 13,620 points
4,579 views
0 votes
0 answers

What does LayoutInflater in Android do?

What is the use of LayoutInflater in ...READ MORE

Sep 22, 2022 in Android by Edureka
• 13,620 points
521 views
0 votes
0 answers

Android Studio Could not initialize class org.codehaus.groovy.runtime.InvokerHelper

I'm a newbie to Android Studio. Following ...READ MORE

Sep 22, 2022 in Android by Edureka
• 13,620 points
1,342 views
+1 vote
1 answer

net: ERR_UNKNOWN_URL_SCHEME in Android Webview codes not working in Kotlin

3 ways to fix the err_unknown_url_scheme error. You ...READ MORE

answered Nov 8, 2022 in Android by Edureka
• 13,620 points
9,242 views
0 votes
1 answer

How can we get the current location in Android?

First you need to define a LocationListener to handle ...READ MORE

answered Sep 25, 2018 in Java by Parth
• 4,640 points
1,024 views
0 votes
1 answer

Can't find class CognitoUserPoolsSignInProvider: Issue with Sign In integration

CognitoUserPoolsSignInProvider is ditributed as part of aws-android-sdk-auth-userpools library. Please import ...READ MORE

answered Sep 28, 2018 in AWS by Priyaj
• 58,020 points
1,136 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP