开发者

Connect myApp with PDF Viewer

my app is downloading a pdf-file to my download path and then i want to open my PDF within a new Intent

but just my reader is open no pdf file

this is my code to open the reader

        Uri oUri = Uri.fromFile(proofFile); 
        Intent iIntent = new Intent(Intent.ACTION_VIEW); 
        iIntent.setDataAndType(oUri, "application/pdf"); 
        iIntent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); 
        startAc开发者_运维问答tivity(iIntent);


By default there is no PDF viewer installed on Android, although some HTC phones come with an app that is capable of reading PDF. So first check if you have an app that can read PDF and then read this post on how to open it.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜