Skip to first unread message

ria...@gmail.com

unread,
Apr 15, 2014, 9:11:15 PM4/15/14
to mitappinv...@googlegroups.com
i use this,
http://puravidaapps.com/read.php

it says production path is:
file:///android_asset/read.html

but when i try this it says cant find file

i changed to:
file:///assets/read.html

still doestn work what should it be

thanks

phantomfoot

unread,
Apr 16, 2014, 7:49:14 AM4/16/14
to mitappinv...@googlegroups.com
It should be as stated
file:///android_asset/read.html

What exactly does not work? How are you using the path?

phantomfoot

unread,
Apr 16, 2014, 7:50:16 AM4/16/14
to mitappinv...@googlegroups.com
Have you uploaded read.html to your project?

Scott Ferguson

unread,
Apr 16, 2014, 9:29:43 AM4/16/14
to mitappinv...@googlegroups.com, ria...@gmail.com
ria-
Your file name extensions should be the same - both read.html, I think.
Also the path you are using is for a packaged app.
During development use: file:///mnt/sdcard/AppInventor/assets/read.html
You might get read.php to work also but I have not tried that:
file:///mnt/sdcard/AppInventor/assets/read.php
But did you know you need a server to actually execute the php script?
If App Inventor opens read.php at all it would likely be as a text file in WebViewer.
---
Scott

ria...@gmail.com

unread,
Apr 16, 2014, 1:47:41 PM4/16/14
to mitappinv...@googlegroups.com
to load a html page built into the app..

like this.
web.gotourl(file:///android_asset/showimage.html?image=fence.gif)

i also tried: doesnt work says web page not available
showimage.html?image=fence.gif

Taifun

unread,
Apr 16, 2014, 2:35:31 PM4/16/14
to mitappinv...@googlegroups.com, ria...@gmail.com
this method does not work with input parameters
more about that problem and how to solve it see here http://puravidaapps.com/tutorials.php#input
Taifun

ria...@gmail.com

unread,
Apr 16, 2014, 5:13:34 PM4/16/14
to mitappinv...@googlegroups.com, ria...@gmail.com
Because of a bug in Android 3.x/4.x we can't access a HTML document stored as asset in App Inventor with input parameters. Therefore the HTML document and libraries need to be downloaded to the device on first run of the app to be able to access the HTML document with all Android versions.
The good news is that we do not have the hassle with development / production path anymore, this works in development and production with the same path!

but wheres the example.

but i want the html to acces files in the assets folder not on the server.  So what i download the html file from the server?  But then what do i set the url to, local path or server url.

If server URl then if i reference a file with on path e,g
<img src="image.jpg">

it will search for it on the server not the assets folder.

any suggestions thanks

Taifun

unread,
Apr 16, 2014, 5:31:03 PM4/16/14
to mitappinv...@googlegroups.com, ria...@gmail.com
but wheres the example.
actually there are 8 examples on my webpage

but i want the html to acces files in the assets folder not on the server. 
not possible, because of the input parameter and that bug
 Taifun
Reply all
Reply to author
Forward
Message has been deleted
Message has been deleted
0 new messages