<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>little_strange</author_name>
  <author_url>https://blog.hatena.ne.jp/little_strange/</author_url>
  <blog_title>Little Strange Software</blog_title>
  <blog_url>https://little-strange.hatenablog.com/</blog_url>
  <categories>
    <anon>Kotlin備忘録</anon>
  </categories>
  <description>どうも！LSSです！ 今回は、 SQLiteとかを使うよりもよっぽど簡単に、 アプリのデータを保存できて、 アプリ終了後も再度立ち上げると、覚えていてくれる、 そんなSharedPreferencesについて、自分なりにまとめてみたいと思います。 ぶっちゃけ、覚える必要があるのは6つの文だけ！ lateinit var prf:SharedPreferences prf=getSharedPreferences(&quot;DATAPREF&quot;, Context.MODE_PRIVATE) intdata1=prf.getInt(&quot;intkey1&quot;,0) val prfe=prf.edit()prfe.p…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Flittle-strange.hatenablog.com%2Fentry%2F2019%2F10%2F06%2F235429&quot; title=&quot;SharedPreferencesでお手軽データ保存！ - Little Strange Software&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-10-06 23:54:29</published>
  <title>SharedPreferencesでお手軽データ保存！</title>
  <type>rich</type>
  <url>https://little-strange.hatenablog.com/entry/2019/10/06/235429</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
