title: How to show ChangeLog Alert only for certain app versions?
body: <p>I need to show a Changelog when the app is launched where i would illustrate the user the last update news, when the user closes that view i must save the info about it so i would be able to prevent it opening again (If the new version of the app doesn't requires it again as not all versions might require the Changelog to be shown).</p>
  <p>So call this function in my <code>MainActivity</code></p>
  <pre><code>private void checkFirstRun(SharedPreferences sharedPreferences) {
      final String PREFS_NAME = &quot;FirstRun&quot;;
      final String PREF_CHANGELOG_ALERT = &quot;changelog&quot;;
      final String PREF_VERSION_CODE_KEY = &quot;version_code&quot;;
      final int DOESNT_EXIST = -1;
  
      int currentVersionCode = BuildConfig.VERSION_CODE;
      SharedPreferences prefs = getSharedPreferences(PREFS_NAME, MODE_PRIVATE);
      int savedVersionCode = prefs.getInt(PREF_VERSION_CODE_KEY, DOESNT_EXIST);
      boolean firstTimeChangelog = prefs.getBoolean(PREF_CHANGELOG_ALERT, true);
  
      if (savedVersionCode &lt; 65) {
          // If the App version is lower than 65 (old shared prefs) i need to migrate them.
          migratePreferences(sharedPreferences);
      }
  
      if (currentVersionCode == 65 &amp;&amp; firstTimeChangelog) {
          // If the App version is 65 (new features and layouts has been added) i need to show a change log activity which informs the user about all the news, but i need to show it only once.
          Intent intent = new Intent(MainActivity.this, ChangelogSlider.class);
          startActivity(intent);
      }
  
      prefs.edit().putInt(PREF_VERSION_CODE_KEY, currentVersionCode).apply();
  }
  </code></pre>
  <p>Then in my <code>ChangelogSlider.class</code> once the user press &quot;Got it&quot; i set the <code>PREF_CHANGELOG_ALERT</code> to <code>false</code>.</p>
  <p>But then if like in the version 69 i will need to show that alert again, how should i behave?</p>