<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>torajirousan</author_name>
  <author_url>https://blog.hatena.ne.jp/torajirousan/</author_url>
  <blog_title>diadia</blog_title>
  <blog_url>https://torajirousan.hatenadiary.jp/</blog_url>
  <categories>
    <anon>androidアプリ開発</anon>
    <anon>kotlin</anon>
  </categories>
  <description>画像を呼び出すためのギャラリーの起動 ギャラリーを起動して画像をもとのアクティビティにわたす必要があるから、startActivityForResult()が必要。 startActivityForResult(intent, REQUEST_CODE) ギャラリーを起動するためのインテントを設定。 val intent = Intent(Intent.ACTION_OPEN_DOCUMENT).apply{ addCategory(Intent.CATEGORY_OPENABLE) type = &quot;image/*&quot; } で、本題の画像を端末から読み出す方法 参考: [Kotlin] Recy…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftorajirousan.hatenadiary.jp%2Fentry%2F2020%2F04%2F14%2F070011&quot; title=&quot;画像をスマホから呼び出す - diadia&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>2020-04-14 07:00:11</published>
  <title>画像をスマホから呼び出す</title>
  <type>rich</type>
  <url>https://torajirousan.hatenadiary.jp/entry/2020/04/14/070011</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
