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.




811 posts

Ultimate Geek


#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

Hammered
5489 posts

Uber Geek

Moderator
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





Keep calm, and carry on posting.

 

 

 

Click to see full size Click to see full size


Stu

Hammered
5489 posts

Uber Geek

Moderator
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.





Keep calm, and carry on posting.

 

 

 

Click to see full size Click to see full size


 
 
 
 




811 posts

Ultimate Geek


  #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. 


23473 posts

Uber Geek

Trusted
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

Hammered
5489 posts

Uber Geek

Moderator
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.





Keep calm, and carry on posting.

 

 

 

Click to see full size Click to see full size


Create new topic




News »

Pre-orders for Huawei MateBook 13 open now
Posted 14-Aug-2020 14:26


Freeview On Demand app launches on Sony Android TVs
Posted 6-Aug-2020 13:35


UFB hits more than one million connections
Posted 6-Aug-2020 09:42


D-Link A/NZ extends COVR Wi-Fi EasyMesh System series with new three-pack
Posted 4-Aug-2020 15:01


New Zealand software Rfider tracks coffee from Colombia all the way to New Zealand businesses
Posted 3-Aug-2020 10:35


Logitech G launches Pro X Wireless gaming headset
Posted 3-Aug-2020 10:21


Sony Alpha 7S III provides supreme imaging performance
Posted 3-Aug-2020 10:11


Sony introduces first CFexpress Type A memory card
Posted 3-Aug-2020 10:05


Marsello acquires Goody consolidating online and in-store marketing position
Posted 30-Jul-2020 16:26


Fonterra first major customer for Microsoft's New Zealand datacentre
Posted 30-Jul-2020 08:07


Everything we learnt at the IBM Cloud Forum 2020
Posted 29-Jul-2020 14:45


Dropbox launches native HelloSign workflow and data residency in Australia
Posted 29-Jul-2020 12:48


Spark launches 5G in Palmerston North
Posted 29-Jul-2020 09:50


Lenovo brings speed and smarter features to new 5G mobile gaming phone
Posted 28-Jul-2020 22:00


Withings raises $60 million to enable bridge between patients and healthcare
Posted 28-Jul-2020 21:51



Geekzone Live »

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


Support Geekzone »

Our community of supporters help make Geekzone possible. Click the button below to join them.

Support Geezone on PressPatron



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.

Alternatively, you can receive a daily email with Geekzone updates.