Discussion Forums  >  Images, Documents, File Locations

Replies: 9    Views: 758

Black Light
Code is Art
Profile
Posts: 15
Reg: Sep 10, 2012
Fairfax
4,300
05/31/13 10:54 PM (11 years ago)

PDFs are working fine in iOS but it does not work on Android

I created an app, that views pdf files. These files are working fine on iOS version, but I could not manage to run them on Android simulator!!! I need your advice .. one option is to convert these files to jpeg files, but is there any better option ??
 
ianJamesPiano
Code is Art
Profile
Posts: 2661
Reg: Feb 13, 2011
Palm Springs, C...
37,010
like
05/31/13 11:23 PM (11 years ago)
Hi Black Light, On Android are you being prompted with what PDF reader you would like the document to be opened with? That's the bummer about Android. IOS can display PDF's natively but Android is looking for a PDF reader on the device to open the document.
 
Black Light
Code is Art
Profile
Posts: 15
Reg: Sep 10, 2012
Fairfax
4,300
like
05/31/13 11:33 PM (11 years ago)
Ye, it asks for PDF reader, I am looking for natively supported file-type by android, any suggestions ? Thanks,
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
05/31/13 11:37 PM (11 years ago)
Yeah... that's one of the things about Android. It's not native like iOS is for something. For other things it's remarkably simple, but PDF isn't one of those things. You'll either need to get an app like adobe reader to 'assist', or find a different display method. Cheers! -- Smug
 
WolfTimJ
buzztouch Evangelist
Profile
Posts: 810
Reg: Feb 20, 2011
Rockwall, TX
17,400
like
06/01/13 07:50 AM (11 years ago)
You can make them effectively run like they do in iOS. Under the "How Tos" section on Buzztouch, follow the "Intercepting Menu Taps" instructions from David. Once that is followed and you have a PDF reader installed on the device, it's about at seamless as iOS. I have found though that the instructions don't work with Chris's menu plugin, but they do with the menuListSimple and I think menuWithImage. It seems counterintuitive that the menu plugins are what needs the mod but I have several published apps that work with this procedure. For it to run on the sim you will have to install a PDF reader on the AVD too. I find it easier to test on an Android device instead of the sim for this reason. Tim
 
ianJamesPiano
Code is Art
Profile
Posts: 2661
Reg: Feb 13, 2011
Palm Springs, C...
37,010
like
06/01/13 08:09 AM (11 years ago)
good stuff Tim!
 
LA
Aspiring developer
Profile
Posts: 3278
Reg: Aug 16, 2012
Jerseyville, IL
42,880
like
06/01/13 11:59 AM (11 years ago)
lol good ole Android and the readers..lol LA
 
ianJamesPiano
Code is Art
Profile
Posts: 2661
Reg: Feb 13, 2011
Palm Springs, C...
37,010
like
06/01/13 12:10 PM (11 years ago)
totally LA!
 
LA
Aspiring developer
Profile
Posts: 3278
Reg: Aug 16, 2012
Jerseyville, IL
42,880
like
06/01/13 12:12 PM (11 years ago)
Still love Android though! LA
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
06/01/13 02:42 PM (11 years ago)
WolfTimJ, excellent information! Cheers! -- Smug
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.