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.




810 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
5465 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
5465 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


 
 
 
 




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


23382 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
5465 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 »

Menulog change colours as parent company merges with Dutch food delivery service
Posted 2-Jul-2020 07:53


Techweek2020 goes digital to make it easier for Kiwis to connect and learn
Posted 2-Jul-2020 07:48


Catalyst Cloud launches new Solutions Hub to support their kiwi Partners and Customers
Posted 2-Jul-2020 07:44


Microsoft to help New Zealand job seekers acquire new digital skills needed for the COVID-19 economy
Posted 2-Jul-2020 07:41


Hewlett Packard Enterprise introduces new HPE GreenLake cloud services
Posted 24-Jun-2020 08:07


New cloud data protection services from Hewlett Packard Enterprise
Posted 24-Jun-2020 07:58


Hewlett Packard Enterprise unveils HPE Ezmeral, new software portfolio and brand
Posted 24-Jun-2020 07:10


Apple reveals new developer technologies to foster the next generation of apps
Posted 23-Jun-2020 15:30


Poly introduces solutions for Microsoft Teams Rooms
Posted 23-Jun-2020 15:14


Lenovo launches new ThinkPad P Series mobile workstations
Posted 23-Jun-2020 09:17


Lenovo brings Linux certification to ThinkPad and ThinkStation Workstation portfolio
Posted 23-Jun-2020 08:56


Apple introduces new features for iPhone iOS14 and iPadOS 14
Posted 23-Jun-2020 08:28


Apple announces Mac transition to Apple silicon
Posted 23-Jun-2020 08:18


OPPO A72 a top mid-tier smartphone
Posted 19-Jun-2020 18:02


D-Link A/NZ launches new smart AX1500 Wi-Fi 6 Router
Posted 19-Jun-2020 15:03



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.