<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>aimy74</author_name>
  <author_url>https://blog.hatena.ne.jp/aimy74/</author_url>
  <blog_title>エンジニアのひとりごと。</blog_title>
  <blog_url>https://aimy74.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>SharedPreferenceに保存できるデータ型って結構少ないんですが、 ひと手間加えると自由度が高くなります。 自分で定義した型のまま持てたりね！ 今回はその方法です。 SharedPreferenceを扱うラッパークラス（PreferenceManager）を定義してある前提で サクサクっと。 ⇒ラッパークラスの定義はこちら aimy74.hatenablog.com 最終的に保存する際はString型に落ち着くのですが、 JSON形式にすればオブジェクト（として扱いたいデータ）をPreferenceに簡単に保存できます。 Gsonライブラリ導入 実装 続きを読む Gsonライブラリ導…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Faimy74.hatenablog.com%2Fentry%2F2019%2F12%2F17%2F211530&quot; title=&quot;SharedPreferenceにオブジェクトを保存する - エンジニアのひとりごと。&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>2019-12-17 21:15:30</published>
  <title>SharedPreferenceにオブジェクトを保存する</title>
  <type>rich</type>
  <url>https://aimy74.hatenablog.com/entry/2019/12/17/211530</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
