Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.


turb

880 posts

Ultimate Geek
+1 received by user: 135


#215575 3-Jul-2017 16:28
Send private message

I have some HTML files in the internal storage of my android phone.

I can open them (and they load the associated CSS file in the same folder) using Chrome.

So far so good.

But what I need to do is create a shortcut on the home screen, and it seems only the Android Browser has the power to do that.

When I enter file:///sdcard/download/index.html in the bar it just does an google search.

Why would it work in chrome and not in Android Browser?

Grrrrr!




Interests: HTPC, Web App authoring. 


Create new topic

Stu

Stu
Hammered
8740 posts

Uber Geek
+1 received by user: 2391

Moderator
ID Verified
Trusted
Lifetime subscriber

  #1811101 3-Jul-2017 16:50
Send private message

There are a few ways to create a shortcut to files in Android. Some options here that may work. https://www.google.co.nz/search?q=android+create+shortcut+html+file





People often mistake me for an adult because of my age.

 

Keep calm, and carry on posting.

 

Referral Links: Sharesies

 

Are you happy with what you get from Geekzone? If so, please consider supporting us by subscribing.

 

No matter where you go, there you are.




Stu

Stu
Hammered
8740 posts

Uber Geek
+1 received by user: 2391

Moderator
ID Verified
Trusted
Lifetime subscriber

  #1811103 3-Jul-2017 16:53
Send private message

To add, I use Solid Explorer and you just push and hold the file you want to create the shortcut for, hit the 3 dots and select 'create shortcut' and you're done.





People often mistake me for an adult because of my age.

 

Keep calm, and carry on posting.

 

Referral Links: Sharesies

 

Are you happy with what you get from Geekzone? If so, please consider supporting us by subscribing.

 

No matter where you go, there you are.


turb

880 posts

Ultimate Geek
+1 received by user: 135


  #1811157 3-Jul-2017 17:58
Send private message

Thanks for the suggestion, but it doesn't seem to treat it as a normal shortcut.

I open the shortcut with Android Browser and it says Your File was Not Found, and in the address bar there is "content://0@media/external/file/524".

Chrome will open the HTML file, but not render the CSS content, the links on the page don't work, and has the same thing in the address bar.

It seems that shortcuts created by the file manager aren't a shortcut in the normal sense, but it's actually some kind of facsimile of the file itself.

Oh and btw I found that the native Samsung file manager will create shortcuts too, but they behave in exactly the same way.




Interests: HTPC, Web App authoring. 




richms
29098 posts

Uber Geek
+1 received by user: 10208

Trusted
Lifetime subscriber

  #1811158 3-Jul-2017 18:04
Send private message

That stuff will be a result of the changes that they made to stop apps from having file access to the sdcard. I had the same links come up in some media player app which meant it could play the track I opened, but wouldnt be able to move on to the next one in the folder as only the opened file made it thru the stuff in the way.

 

 





Richard rich.ms

Stu

Stu
Hammered
8740 posts

Uber Geek
+1 received by user: 2391

Moderator
ID Verified
Trusted
Lifetime subscriber

  #1811160 3-Jul-2017 18:17
Send private message

How about creating a shortcut to the folder containing the html file? Adds an extra step, but should be a workaround.





People often mistake me for an adult because of my age.

 

Keep calm, and carry on posting.

 

Referral Links: Sharesies

 

Are you happy with what you get from Geekzone? If so, please consider supporting us by subscribing.

 

No matter where you go, there you are.


Create new topic








Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.



Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.