Skip to first unread message

Chetan Kulkarni

unread,
Jul 7, 2014, 3:43:59 PM7/7/14
to mitappinv...@googlegroups.com
i am trying to build a app in which i shall host some stuff's

say:
1-college schedule
2-syllabus
3-lecturers details
4-events in the college etc

but college will provide me a .pdf file
i want to directly use this .pdf file for viewing the details in the file!!!!

Taifun

unread,
Jul 7, 2014, 3:50:57 PM7/7/14
to mitappinv...@googlegroups.com

Chetan Kulkarni

unread,
Jul 7, 2014, 4:13:37 PM7/7/14
to mitappinv...@googlegroups.com
Thanks for your reply taifun!!

lets say i am hosting a .pdf file in google drive!!
and i want to use it in my app using webviewer!!

you have pasted a link in the snippet !!how to get it!!because i am getting this link
for my .pdf file 


and this link is asking me to sign in to my google account!!!
is it possible to get to pdf without signing in!!!
 

Taifun

unread,
Jul 7, 2014, 4:20:13 PM7/7/14
to
your pdf file must be publicly accessible in your Google Drive, check the sharing properties of your pdf file in Google Drive

Chetan Kulkarni

unread,
Jul 7, 2014, 4:27:48 PM7/7/14
to mitappinv...@googlegroups.com
That thing helped!!!

is it possible to read any file with .txt,.doc,.wrd etc

coz, i actually dont want my app to access internet whatsoever


Chetan Kulkarni

unread,
Jul 7, 2014, 4:34:33 PM7/7/14
to mitappinv...@googlegroups.com
sir ,is it possible to host a txt .doc file at least!!!...

because i don't want my app to interact with internet in any way!!!!

i wanted my app to be completely offline


Taifun

unread,
Jul 7, 2014, 4:51:14 PM7/7/14
to mitappinv...@googlegroups.com
yes, you can upload text files into App Inventor, but you will have to display the text in a label without any formatting possibilities
but probably in your case you may be interested in this solution:
Taifun

Chetan Kulkarni

unread,
Jul 7, 2014, 5:12:02 PM7/7/14
to mitappinv...@googlegroups.com
absolutely,this thing may help me

i actually converted my pdf into html

and uploaded it in appinventer

and i followed the process ,,,,

but my app responds saying that "file://android_asset/rc.html might be temporarily down or it may have moved permanently to a new web address"
Capture.PNG
Capture2.PNG

Taifun

unread,
Jul 7, 2014, 5:22:57 PM7/7/14
to mitappinv...@googlegroups.com

There is one special thing to consider for HTML documents uploaded as assets into App Inventor: During development, you have to use the development path to the embedded HTML document.

file:///mnt/sdcard/AppInventor/assets/<NAME OF YOUR HTML FILE>.html


Before building the app, use the production path.

file:///android_asset/<NAME OF YOUR HTML FILE>.html

Taifun

Chetan Kulkarni

unread,
Jul 7, 2014, 5:25:01 PM7/7/14
to mitappinv...@googlegroups.com
Taifun!!
i actually tries something new!!,
simply using some online converter converted my pdf into jpg

and jpg's can be easily hosted

now i can see my pdf in the app with internet!!


but 1 problem!!


i am unable to zoom-in or zoom-out of these images!!


can we zoom the image hosted in appinventer?


finger's crossed for your answer

Taifun

unread,
Jul 7, 2014, 5:33:23 PM7/7/14
to mitappinv...@googlegroups.com
yes you can, but only if you use the webviewer to display the image
see also this example how to do it https://puravidaapps.com/snippets.php#2ani
Taifun
Reply all
Reply to author
Forward
0 new messages