Hello all,
As a newbie android programmer, I am in the somewhat difficult position of attempting to code an android app without owning android device, and would thus very much appreciate your help with what I fear may be a silly question.
If I put the PDF file GoldLineFeb2012.pdf into the "files" tab of my program in Basic4Android, will the following code open that PDF (in an external viewer, I assume)? When I attempt to run it in the emulator, it tells me "no applications can perform this action". I'm not sure if that's because the emulator lacks a PDF viewer, or because of a problem with my code. And without an android device of my own I am unable to test it first-hand.
Thanks a lot for the help!
Steve
As a newbie android programmer, I am in the somewhat difficult position of attempting to code an android app without owning android device, and would thus very much appreciate your help with what I fear may be a silly question.
If I put the PDF file GoldLineFeb2012.pdf into the "files" tab of my program in Basic4Android, will the following code open that PDF (in an external viewer, I assume)? When I attempt to run it in the emulator, it tells me "no applications can perform this action". I'm not sure if that's because the emulator lacks a PDF viewer, or because of a problem with my code. And without an android device of my own I am unable to test it first-hand.
Dim intent1 As Intent
intent1.Initialize(intent1.ACTION_VIEW, "GoldLineFeb2012.pdf")
intent1.SetType("application/pdf")
intent1.WrapAsIntentChooser("Choose PDF Viewer")
StartActivity(intent1)
Thanks a lot for the help!
Steve