Groups
Groups
Sign in
Groups
Groups
日本Androidの会
Conversations
About
Send feedback
Help
PDFアプリの起動、または表示
2,722 views
Skip to first unread message
Maru
unread,
Jan 3, 2011, 12:12:49 PM
1/3/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to 日本Androidの会
はじめましてMaruと申します。
自作アプリからダウンロードしたPDFを表示をしようとしています。
PDFに関連付けられた外部アプリを引数付きで起動できれば良いのですが
方法がわかりませんでした。ご存知の方、お願いします。
そもそも、どのAndroid端末にも標準でPDFビューワがプリインストールされて
いるものでしょうか?(手元のGalaxyには入っているのですが・・・)
外部アプリの起動以外に自前でPDFを表示する方法があれば
こちらも教えていただければと思います。
よろしくお願いします。
inoaki
unread,
Jan 4, 2011, 8:19:17 PM
1/4/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to 日本Androidの会
こんにちは、いのうえといいます。
File file = (開きたいファイル)
Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setDataAndType(Uri.parse("file://" + file.getPath()),
"application/pdf");
startActivity(intent);
こんな感じでできます。
Maru
unread,
Jan 11, 2011, 4:12:10 AM
1/11/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to 日本Androidの会
確認が遅くなり恐縮です。
上記の方法で対応できました。
PDFを開くAPPがインストールされていない端末でどうなるかは
検証してみます。
ありがとうございました。
> > よろしくお願いします。- 引用テキストを表示しない -
>
> - 引用テキストを表示 -
Reply all
Reply to author
Forward
0 new messages