<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>yyuyakun</author_name>
  <author_url>https://blog.hatena.ne.jp/yyuyakun/</author_url>
  <blog_title>ゆやまるのエンジニアの日常</blog_title>
  <blog_url>https://yyuyakun.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>作成したアプリ - Switchを使ったON・OFF切り替えアプリ。ON・OFF切り替え時SwitchとSwitchの文言が変更。アプリキル-&gt;再起動時ON・OFFの状態をsharedpreferencesで復元するアプリ 使用した機能 - SharedPreferences -&gt; アプリ内にデータを保持しておく仕組み。アプリキル後も.xmlにデータが保持される。 ↓ sharedPreferencesの扱い方の例 // context.getSharedPreferences(FILE_NAME, Context.MODE_PRIVATE)で生成// 第一引数に用いる名前でsharedPre…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyyuyakun.hatenablog.com%2Fentry%2F2022%2F01%2F27%2F003937&quot; title=&quot;Android:ON・OFF設定のSwitchとSwichのデータ保持の為にsharedPreferencesを使用したサンプルアプリ実装 - ゆやまるのエンジニアの日常&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>https://cdn-ak.f.st-hatena.com/images/fotolife/y/yyuyakun/20220127/20220127002507.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2022-01-27 00:39:37</published>
  <title>Android:ON・OFF設定のSwitchとSwichのデータ保持の為にsharedPreferencesを使用したサンプルアプリ実装</title>
  <type>rich</type>
  <url>https://yyuyakun.hatenablog.com/entry/2022/01/27/003937</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
