Marco Valdo

unread,
Apr 10, 2014, 3:54:53 PM4/10/14
to mitappinv...@googlegroups.com
Hi,  we are in the final phase of the development of an educational app in a school. We need to be able to enlarge the screen size (zoom) to better read information/ see images by use of finger pinches. Going thru tutorials and docs we have been unable to locate the procedures to do that. Can anybody help us?
Thank you in advance.

Scott Ferguson

unread,
Apr 10, 2014, 10:44:43 PM4/10/14
to mitappinv...@googlegroups.com
You can use finger pinches in the WebViewer.
That would mean that you need the information in an html document which supports text and images.
---
Scott

Taifun

unread,
Apr 11, 2014, 10:16:39 AM4/11/14
to mitappinv...@googlegroups.com
Hi,  we are in the final phase of the development of an educational app in a school.
normally this is something you test first before starting development...
 
We need to be able to enlarge the screen size (zoom) to better read information/ see images by use of finger pinches. 
only the webviewer can do this
probably this can help:  http://puravidaapps.com/label.php

Taifun

Trying to push the limits of App Inventor! Snippets and Tutorials from Pura Vida Apps by Taifun.                

Marco Valdo

unread,
Apr 11, 2014, 5:02:08 PM4/11/14
to mitappinv...@googlegroups.com
Thank you Scott and Taifun! I will try your suggestions.
--
Alberto

Marco Valdo

unread,
Apr 21, 2014, 8:49:17 AM4/21/14
to mitappinv...@googlegroups.com

By using this method described at   http://puravidaapps.com/snippets1.php#zoom :

During development, you have to use the development path to the image.

file:///mnt/sdcard/AppInventor/assets/whalestail.jpg


Before packaging the app, use the production path.

file:///android_asset/whalestail.jpg


(including the block call to url file:///mnt/sdcard/AppInventor/assets/whalestail.jpg (during development) and file:///android_asset/whalestail.jpg (before build and testing).  I constantly get the error Web Page unavailable. The good news is that the zoom function is there. I have got a wifi/3G connection available, am testing the apk on the device and using AI2. Thank you for any suggestions.

--

Alberto

Taifun

unread,
Apr 21, 2014, 10:19:53 AM4/21/14
to mitappinv...@googlegroups.com
you might want to provide a screenshot of your relevant blocks

Marco Valdo

unread,
Apr 21, 2014, 11:40:53 AM4/21/14
to mitappinv...@googlegroups.com
Sure! (pls see attchmt)
 
blocks.jpg

Taifun

unread,
Apr 21, 2014, 12:25:13 PM4/21/14
to mitappinv...@googlegroups.com
did you upload the file bernardostrozzilacuoca.jpeg as asset into your App Inventor project? 
Note: the file names are case sensitive.
does it work neither in development nor after building your app?
which device are you using for the test?
Taifun

Marco Valdo

unread,
Apr 21, 2014, 12:52:33 PM4/21/14
to mitappinv...@googlegroups.com
I have uploaded is as Media (that is I have uploaded  it in the AI2project/DB). The doubt I have when I saw  in the path 'assets' is that I should do something else, may be this is my mistake... 
- Thank you for the case sensitive hint (anyhow i copy&paste filenames).
- it does not
- a sony xperia phone (android v.4.0.4) and a google tablet (android v.4.4.2)
Thank you for your support.

--
Alberto

Taifun

unread,
Apr 21, 2014, 1:39:19 PM4/21/14
to mitappinv...@googlegroups.com
I have uploaded is as Media
that's fine
you might want to provide a screenshot of your Media (see my screenshot) and a screenshot of the error message
Taifun




Marco Valdo

unread,
Apr 22, 2014, 3:42:42 AM4/22/14
to mitappinv...@googlegroups.com
Here you go!
the android screenshot refers to another screen I attempted to apply the zoom feature (the error wording is the same). Since the error msg is in Italian, translation is: Web page not available: web page at address file:///mnt... could be not available or was moved to another address. Some suggestions: Check that that data connection and signal are on. Reload webpage later. View the cache copy of the web page on google. 

Please not that data connection is on (I put apk on my dropbox, download it on my phone and install it on the phone) 

Thanks. 

phone error.png
Media-Assets.png

Taifun

unread,
Apr 22, 2014, 10:25:26 AM4/22/14
to
from screenshot 1 the file which was not found is called PRIMAPAGIN.jpg
but in the thread you were talking about the file bernardostrozzilacuoca.jpeg and this file we also can see in the media assets screenshot...

so I would try to open bernardostrozzilacuoca.jpeg with the webviewer instead of PRIMAPAGIN.jpeg...

Taifun

Marco Valdo

unread,
Apr 22, 2014, 10:14:46 AM4/22/14
to mitappinv...@googlegroups.com
The android screenshot is just to show the wording. It appears every time I try to implement zoom on different screens (if it works I would like to apply zoom to a dozen of screens :-) ) and heppemed also on PRIMAPAGIN. In any case, please find attached  PRIMAPAGIN_ZOOMPROBLEM.png that demonstrates that PRIMAPAGIN belong to the Media set of the same project. Thanks.
PRIMAPAGIN_ZOOMPROBLEM.png

Taifun

unread,
Apr 22, 2014, 10:24:21 AM4/22/14
to mitappinv...@googlegroups.com
ok, as asset you have a file called PRIMAPAGIN.JPEG and you are trying to call  PRIMAPAGIN.jpeg with the webviewer
Do you see the difference? The names are case sensitive...
Taifun

Marco Valdo

unread,
Apr 22, 2014, 11:51:23 AM4/22/14
to mitappinv...@googlegroups.com
I do :-) . Filename to me is Filename (no extension), that's why I did not realize it at once (in fact for PRIMAPAGIN I copy and pasted from a txt in which I had written manually...). 

It works!

Thank you, Taifun!!!

Marco Valdo

unread,
Apr 22, 2014, 5:10:28 PM4/22/14
to mitappinv...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages