BUT - I CAN successfully install and execute a very similarly constructed dynamic table app in apk form by using a manually downloaded "table.html" into a location that I choose on the phone (I placed it at "file:///mnt/sdcard/aaMyStuff/mytable.html"). All I needed to do was construct the URL using the exact address of where I downloaded the file and then append the "?" and the URI-encoded table.
What this means to me is that the problem is not with the WebViewer or the handling of the URL, HTML and JavaScript, but "just" that it can't find the file in the specific location "file:///android_asset/table.html".
The Astro file manager (free version) does not show me any "android_asset" folder that I can locate (hidden?). I'm not completely sure I understand that address syntax anyway - web searches did not clarify the syntax for me. Where should that file:/// address take me and what tool should I use to try to locate the file?
BUT - I CAN successfully install and execute a very similarly constructed dynamic table app in apk form by using a manually downloaded "table.html" into a location that I choose on the phone (I placed it at "file:///mnt/sdcard/aaMyStuff/mytable.html"). All I needed to do was construct the URL using the exact address of where I downloaded the file and then append the "?" and the URI-encoded table.yes that works, in that case you would have to provide the html file outside of your app
What this means to me is that the problem is not with the WebViewer or the handling of the URL, HTML and JavaScript, but "just" that it can't find the file in the specific location "file:///android_asset/table.html".the simple examples without input parameters should work on your device, e.g. try this one: http://puravidaapps.com/snippets.php#html and let me know if it works on your device!
The Astro file manager (free version) does not show me any "android_asset" folder that I can locate (hidden?). I'm not completely sure I understand that address syntax anyway - web searches did not clarify the syntax for me. Where should that file:/// address take me and what tool should I use to try to locate the file?Gary found that out and he looked into the App Inventor sources, see also here: https://groups.google.com/d/msg/ai4a/zn88WY5bH_4/zi90UDu96-AJ
he might shed some light onto this soon...
file:///mnt/sdcard/AppInventor/assets/hello.html?argument - OK!! - VERY UNEXPECTED
First part of the theory of why it works is that the actual assets being referenced are the ones left over from a USB connected test.
I am pretty unclear on exactly whose "assets" are being stored where.
--------------------------------------------------------------------------------------------------
Production - APK built, downloaded to Droid Razr via barcode and installed with Astro file manager. I'm not sure I know how to do the equivalent with the SDK emulator
I need to study it further because I am not familiar with the notifier component and I'm not sure how the tinydb is needed/used.
This is a known issue for Android 3.0 up, webview does not accept parameters in the URL:
http://code.google.com/p/android/issues/detail?id=17535
Star it! They say they've fixed it but will only come out on a future release of Android. They discuss several workarounds, but none I believe are suitable for the limitations of Appinventor.
S
all the assets of your projects are stored in this directory: file:///mnt/sdcard/AppInventor/assets what do you think about my new version 2 of the example? http://puravidaapps.com/table2.php would that work for you?
Taifun
@Howard, ¡muchas gracias por tus pruebas!
como hemos visto, llamar a un documento html almacenado como activo en App Inventor con parámetros de entrada solo es posible con dispositivos que ejecutan Android 2.x, pero no con dispositivos que ejecutan Android 3.x / 4.x. Por lo tanto, el documento html debe descargarse al dispositivo en la primera ejecución de la aplicación para poder acceder a él con todas las versiones de Android. La buena noticia es que ya no tenemos problemas con la ruta de desarrollo / producción, esto funciona en el desarrollo y la producción con el mismo camino.
vea la versión 2 del ejemplo de la tabla dinámica aquí http://puravidaapps.com/ table2.php
Taifun
puravidaapps.com