What does file android asset www index html mean

0 votes
When loading an HTML file from the Android assets folder, what does the file:/ sign mean?

Is the root directory's path name an absolute path?

By the way, I spotted this in the PhoneGap tutorial.
Nov 10 in Android by Edureka
• 12,390 points
39 views

1 answer to this question.

0 votes
file:/// is a URI (Uniform Resource Identifier) that just makes a distinction from the http://, which is the default URI that we are all too familiar with.

Although in any setting it does indicate an absolute path name pointing to the root directory, in the context of Android it is a convention to inform the Android run-time that "here, the directory www has a file called index.html placed in the assets folder at the root of the project."

This is how assets are loaded at runtime; for instance, by giving the file:/// URI, a WebView widget would know exactly where to load the embedded resource file.
answered Nov 10 by Edureka
• 10,880 points

Related Questions In Android

0 votes
0 answers

What does LayoutInflater in Android do?

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

Sep 22 in Android by Edureka
• 12,390 points
34 views
0 votes
0 answers

Android Webiew does not load indexed Sdcard (file://sdcard)

When attempting to use mobile browsers to ...READ MORE

Nov 8 in Android by Edureka
• 12,390 points
715 views
0 votes
0 answers

What does FrameLayout do?

I'm a newbie programmer. When I was ...READ MORE

Nov 17 in Android by Edureka
• 12,390 points
15 views
0 votes
0 answers

Why does one use dependency injection?

What are some actual circumstances when using ...READ MORE

Sep 20 in Android by Edureka
• 12,390 points
41 views
0 votes
0 answers

What are the differences between C, C# and C++ in terms of real-world applications?

As I stated in an earlier article, ...READ MORE

Sep 20 in Android by Edureka
• 12,390 points
42 views
0 votes
0 answers

What is the difference between C# and .NET?

May I know what is the difference ...READ MORE

Sep 20 in Android by Edureka
• 12,390 points
43 views
0 votes
1 answer

Running docker on Android

According to the documentation, the Android kernel is ...READ MORE

answered Aug 1, 2018 in Docker by Kalgi
• 52,350 points
3,028 views
0 votes
1 answer

Task Canceled Exception while invoking AWS Lambda

I'm guessing either the TaskCanceledException instance is ...READ MORE

answered Sep 19, 2018 in AWS by Priyaj
• 58,100 points
1,661 views
0 votes
1 answer

Is there a way to run Python on Android?

YES! An example via Matt Cutts via SL4A -- "here’s ...READ MORE

answered Sep 19, 2018 in Python by Priyaj
• 58,100 points
471 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,630 points
426 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