<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>KeithYokoma</author_name>
  <author_url>https://blog.hatena.ne.jp/KeithYokoma/</author_url>
  <blog_title>Infinito Nirone 7</blog_title>
  <blog_url>https://blog.keithyokoma.dev/</blog_url>
  <categories>
  </categories>
  <description>MediaSessionManager は端末上で有効な media session を提供するクラスです。通常のアプリであれば、NotificationListenerService と組み合わせて現状どの media session が端末上で動いているかを取得する目的で使います。 端末上で動いている media session を取得する方法は次の2種類です。 MediaSessionManager.OnActiveSessionsChangedListener を使う MediaSessionManager#getActiveSessions() を使う どちらも media sess…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.keithyokoma.dev%2Fentry%2F2026%2F03%2F01%2F223024&quot; title=&quot;MediaSessionManager を使って現在 active な MediaController を取得したい - Infinito Nirone 7&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>2026-03-01 22:30:24</published>
  <title>MediaSessionManager を使って現在 active な MediaController を取得したい</title>
  <type>rich</type>
  <url>https://blog.keithyokoma.dev/entry/2026/03/01/223024</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
