<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>licheng</author_name>
  <author_url>https://blog.hatena.ne.jp/licheng/</author_url>
  <blog_title>滴了庵日録</blog_title>
  <blog_url>https://lipoyang.hatenablog.com/</blog_url>
  <categories>
    <anon>アプリ開発</anon>
  </categories>
  <description>Androidアプリで設定データを保存するにはプリファレンス(SharedPreferences)を用いるのが簡単で一般的だが、その実体はXML形式のファイルで保存されており、以下の手順で内容を確認できる。たとえば、net.lipoyang.hoge というパッケージ名のアプリの、Piyo という名前(getSharedPreferencesの第一引数)のプリファレンスの内容を確認する場合、 コマンドラインで adb shell run-as net.lipoyang.hoge cd shared_prefs cat Piyo.xml</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Flipoyang.hatenablog.com%2Fentry%2F2020%2F04%2F05%2F134850&quot; title=&quot;メモ：adbでプリファレンスを読み出す方法 - 滴了庵日録&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-05 13:48:50</published>
  <title>メモ：adbでプリファレンスを読み出す方法</title>
  <type>rich</type>
  <url>https://lipoyang.hatenablog.com/entry/2020/04/05/134850</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
