I am creating blackberry application 开发者_开发技巧to view PDF files in my application. I have couple of PDF files in my application bundle. I want to read these PDF files in blackberry. anyone have idea how to load this PDF file to read ?
No functionality for reading PDF files exists in the BlackBerry APIs. You'll have to roll this functionality yourself, which sounds like the overall purpose of your application anyways.
you can achieve that loading google viewer inside your Browserfield, that will do the trick! =D!
public ScrLoad()
{
String url = "http://docs.google.com/gview?embedded=true&url=http://prueba.agenciareforma.com/appiphone/android/elnorte.pdf";
add(new BrowserField(url));
}
Google Docs Viewer http://docs.google.com/gview
精彩评论