2

We are developing a web site that will all be local to an android tablet. The idea is we create the web app, copy the web app to MicroSD cards and distribute the SD cards.

Right now, when you open the file manager and browse to the location and open index.html , the file manager does a terrible job and displaying any of the HTML.

In order to view the page in a browser, you have to type: file:///Removable/MicroSD/MyApp/index.html

That isn't very intuitive. Is it possible to create a file that gets executed from the file manager that will create a bookmark and place it on the home screen that points to the location I stated above? Thanks.

Izzy
  • 91,536
  • 76
  • 351
  • 968
Ronnie
  • 121
  • 1
  • 4

4 Answers4

1

As suggested by t0mm13b in his comment on your question, a shortcut on the desktop is the easiest way. This requires you to first open the page with your browser, and create a bookmark for it (you will see later why this step is required).

As you stated not to be able to add the shortcut in the usual way, here comes an alternative approach:

Some tablets come with a launcher that only offers wallpaper settings on long press (I have some of those as well). In this case, oben the app drawer (where you can find all your apps), and switch to the "widgets" tab (usually by swiping the page from right to left). You will see the word "Widgets" highlighted on top. Now look out for the "bookmarks" widget. You may be offered multiple of them, from "1x1" to "4x4" (the numbers here specify the size the widget will consume on your screen). You can play with them to find the one suiting you best. Long-PRess it, and the drawer behind it will "fade out" -- instead your homescreen(s) will display. Drop the widget where you want to have it.

Now it will ask you for which bookmark you want to use for the widget. Chose the bookmark you created in your browser at the beginning. Now the widget should be created on your homescreen.

Izzy
  • 91,536
  • 76
  • 351
  • 968
0

Install open in browser - then you can browse to the file in a manager, select the file and it will open in the web browser. You can then also bookmark in your web browser and even put that bookmark on a widget on the desktop.

And the above app is open source

Hamish Downer
  • 672
  • 10
  • 17
0

Why are you choosing to distribute via an SD Card? You can use something akin to PhoneGap, and pack it into an APK. It's still static files locally, and still being run by the local WebRenderer.

This is a bit of an alternative solution + comment -.-

Rixius
  • 101
  • 2
0

If you can install an app from the play store without infringing on your contract, then get Task Bomb.

  1. Launch the app and tap Tasks
  2. Tap the white plus in the top-right corner
  3. Select VIEW for Action type
  4. Tap Data, then tap your file manager in the popup
  5. Browse to the root of your site and tap the index page
  6. For Activity, select whichever app you want to use to open it

Now that you've created the task, you have to add a homescreen shortcut

  1. Go to your homescreen and drop the Quick Launch shortcut to your homescreen
  2. Select your task from the list, name it anything, and you're good to go!
KevinOrr
  • 309
  • 2
  • 3
  • 12