<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>dai4649</author_name>
  <author_url>https://blog.hatena.ne.jp/dai4649/</author_url>
  <blog_title>プログラマってこんなかんじ？？</blog_title>
  <blog_url>https://daichan4649.hatenablog.jp/</blog_url>
  <categories>
    <anon>Android</anon>
  </categories>
  <description>ネットワークからデータ取得(画像とか) データ取得完了したら画面にデータ反映 こういうパターンってよくありますよね。このときに画面回転等のコンフィグ変更(縦横切替とか)が行われると 「Activity のインスタンスが破棄-&gt;再生成」 されるので、何も考えてないと保存データも一緒に破棄されてしまいます。なので、内部に保存しているデータを 「保存/復元」 する必要があります。 自分、コンフィグ変更で Activity再生成 とかされると正直めんどくさいので、基本的に &quot;android:configChanges&quot; の属性指定で Activity再生成抑止 して データの保存/復元 とか考えない方…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fdaichan4649.hatenablog.jp%2Fentry%2F20120530%2F1338367072&quot; title=&quot; Activity再生成時のデータの保存・復元(Fragment#setRetainInstance) - プログラマってこんなかんじ？？&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>2012-05-30 17:37:52</published>
  <title> Activity再生成時のデータの保存・復元(Fragment#setRetainInstance)</title>
  <type>rich</type>
  <url>https://daichan4649.hatenablog.jp/entry/20120530/1338367072</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
