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.




788 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
5294 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
5294 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


 
 
 
 




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


22649 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
5294 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



Twitter and LinkedIn »



Follow us to receive Twitter updates when new discussions are posted in our forums:



Follow us to receive Twitter updates when news items and blogs are posted in our frontpage:



Follow us to receive Twitter updates when tech item prices are listed in our price comparison site:





News »

Microsoft Translator understands te reo Māori
Posted 22-Nov-2019 08:46


Chorus to launch Hyperfibre service
Posted 18-Nov-2019 15:00


Microsoft launches first Experience Center worldwide for Asia Pacific in Singapore
Posted 13-Nov-2019 13:08


Disney+ comes to LG Smart TVs
Posted 13-Nov-2019 12:55


Spark launches new wireless broadband "Unplan Metro"
Posted 11-Nov-2019 08:19


Malwarebytes overhauls flagship product with new UI, faster engine and lighter footprint
Posted 6-Nov-2019 11:48


CarbonClick launches into Digital Marketplaces
Posted 6-Nov-2019 11:42


Kordia offers Microsoft Azure Peering Service
Posted 6-Nov-2019 11:41


Spark 5G live on Auckland Harbour for Emirates Team New Zealand
Posted 4-Nov-2019 17:30


BNZ and Vodafone partner to boost NZ Tech for SME
Posted 31-Oct-2019 17:14


Nokia 7.2 available in New Zealand
Posted 31-Oct-2019 16:24


2talk launches Microsoft Teams Direct Routing product
Posted 29-Oct-2019 10:35


New Breast Cancer Foundation app puts power in Kiwi women's hands
Posted 25-Oct-2019 16:13


OPPO Reno2 Series lands, alongside hybrid noise-cancelling Wireless Headphones
Posted 24-Oct-2019 15:32


Waikato Data Scientists awarded $13 million from the Government
Posted 24-Oct-2019 15:27



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.