<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>sakebook</author_name>
  <author_url>https://blog.hatena.ne.jp/sakebook/</author_url>
  <blog_title>メモ2ブログ</blog_title>
  <blog_url>https://sakebook.hatenablog.com/</blog_url>
  <categories>
    <anon>android</anon>
    <anon>Chrome Custom Tabs</anon>
    <anon>Mashwmallow</anon>
  </categories>
  <description>Chrome Custom Tabsを使っていて、公式のサンプルにあるCustomTabsHelperを流用していたのですが、Mashwmallowでうまく動かないことがありました。 CustomTabsHelper内で、PackageManager#queryIntentActivitiesを使っているのですが、その挙動がMashwmallow以前と以降で異なっていたのが原因でした。 どう変わったのかと、回避方法を紹介します。 Mashwmallow以前 次のように呼ぶことで、引数のIntentに対応できるActivityを持つアプリを取得できます。 PackageManager pm = …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsakebook.hatenablog.com%2Fentry%2F2016%2F07%2F01%2F230833&quot; title=&quot;MashwmallowでqueryIntentActivitiesの挙動が変わってた - メモ2ブログ&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>2016-07-01 23:08:33</published>
  <title>MashwmallowでqueryIntentActivitiesの挙動が変わってた</title>
  <type>rich</type>
  <url>https://sakebook.hatenablog.com/entry/2016/07/01/230833</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
