Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Android / adobe reader

Author
Message
darzon
13
Years of Service
User Offline
Joined: 23rd Oct 2010
Location: Italy
Posted: 17th Aug 2017 14:06
Hi,

in agk Tier1 I use runapp to open (with acrobat reader) a pdf (test.pdf in media folder)
so my code is:

runapp("C:\Program Files (x86)\Adobe\Acrobat Reader DC\Reader\AcroRd32.exe" ,"media\test.pdf")

and on pc it's all ok.

Now I want to make the same thing on Android , I know that runapp not working in android
and so I ask if there is another method or example code that make the same thing of runapp ?

thank you

Van B
Moderator
21
Years of Service
User Offline
Joined: 8th Oct 2002
Location: Sunnyvale
Posted: 21st Aug 2017 08:52
On Android, just specify the .PDF file itself. When I did this, it was using PDF's downloaded from a HTTP site, so the PDF is stored locally in the media folder, then just specifying the name let me open it up on Android. You will need Adobe Reader installed of course, but it should work.
The code is dark and full of errors
Sharey
6
Years of Service
User Offline
Joined: 24th Aug 2017
Location:
Posted: 24th Aug 2017 16:13
You can use Bluestack, I think so
darzon
13
Years of Service
User Offline
Joined: 23rd Oct 2010
Location: Italy
Posted: 11th Sep 2017 20:09
But.. Bluestack is an android emulator . I don't undestrand Sharey , can you explain me ?
Alex Deef
10
Years of Service
User Offline
Joined: 8th Apr 2014
Location: eastern europe
Posted: 15th Sep 2017 11:13
You will need Adobe Reader installed of course, but it should work.
http://www.pishop.de/Cialis.html
http://www.achetermed.fr/Levitra.html
Ancient Lady
Valued Member
20
Years of Service
User Offline
Joined: 17th Mar 2004
Location: Anchorage, Alaska, USA
Posted: 13th Nov 2017 00:50
The reason your code didn't work in Android (assuming that you didn't change the code posted), is because it uses a Window style path with the slashes the wrong way and with spaces in it and, most importantly, it explicitly specifies a Windows based program (which would not exist on an Android).
Cheers,
Ancient Lady
=PRoF=
21
Years of Service
User Offline
Joined: 17th Mar 2003
Location: Milton Keynes, UK
Posted: 17th Nov 2017 18:19
I think the command you are after is ViewFile(filename$)

From the help file....

Quote: "
Opens the given file in an the external application suitable for its file type. Typically this is a default app chosen by the user. The file should be in your read or write folder, you should provide the filename as if you were loading the file. Currently this only works on Windows, iOS, and Android. "


Obviously you will need Acrobat Reader installed on the device (or something else which can open .pdf files)

Hope that helps

Login to post a reply

Server time is: 2024-04-24 07:42:09
Your offset time is: 2024-04-24 07:42:09