title: How to handle 'Module config changed, forcing restart due to module com.google.android.gms.ads.dynamite' in a QT app?
body: <p>As far as I can understand from <a href="https://stackoverflow.com/questions/46865465/my-app-restarted-itself-log-shows-chimeramoduleldr-module-config-changed-forc">this post</a>, there is some <code>ChimeraModule</code> module that periodically closes my app when I start it on a clean emulator. I have <code>onApplicationStateChanged</code> QT event handler that saves the app state to a file, but it is not called in this case, so the app state is lost.</p>
  
  <p>What is the right point to save my data in this case?</p>
  
  <p>App logs contains the following:</p>
  
  <pre><code>D MyApp : onApplicationStateChanged(Qt::ApplicationActive)
  ...
  I ChimeraModuleLdr: Module config changed, forcing restart due to module com.google.android.gms.ads.dynamite
  I Process : Sending signal. PID: 7442 SIG: 9
  </code></pre>
  
  <p>When I switch to another app (or deactivate the app) there is also</p>
  
  <pre><code>D MyApp : onApplicationStateChanged(Qt::ApplicationInactive)
  D MyApp : onApplicationStateChanged(Qt::ApplicationSuspended)
  </code></pre>
  
  <p>in the logs and the app state is saved.</p>