开发者

How to open PDF file in my Blackberry application?

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜