<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>hikaruright</author_name>
  <author_url>https://blog.hatena.ne.jp/hikaruright/</author_url>
  <blog_title>hikarurightのPG戦記</blog_title>
  <blog_url>https://hikaruright.hatenadiary.org/</blog_url>
  <categories>
    <anon>Android</anon>
    <anon>Java</anon>
  </categories>
  <description>PDFのオープンを含めて、ローカルファイルを起動するためのTips.androidでは、特定のファイルを起動するためにmime typeを指定してやる必要があります。その為、拡張子からmime typeを判別してやらなくてはならない。 そのmime typeを取得するために、「MimeTypeMap」を使用します。さっきのを少し改変して、 //インテントを生成 Intent intent = new Intent(Intent.ACTION_VIEW); //開くファイル String data = &quot;file:///mnt/sdcard/document.pdf&quot;; //拡張子 String…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhikaruright.hatenadiary.org%2Fentry%2F20120119%2F1326965685&quot; title=&quot;ローカルファイルを指定して他のアプリを起動するためのTips - hikarurightのPG戦記&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2012-01-19 18:34:45</published>
  <title>ローカルファイルを指定して他のアプリを起動するためのTips</title>
  <type>rich</type>
  <url>https://hikaruright.hatenadiary.org/entry/20120119/1326965685</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
