title: What happens while moving app to SD Card in Android
body: <p>I want to know,</p>
  
  <ol>
  <li>What happens to app data/database files/ etc while moving app from internal storage to SD card and vice versa?</li>
  </ol>
  
  <p>Also I have an app which is installed in external storage. Im upgrading the app. The latest version of the app has flag to restrict install only in internal storage. </p>
  
  <ol start="2">
  <li>Will this latest app get installed in internal storage? Will the system automatically move the app data from external to internal or the data from previous installation is lost?</li>
  </ol>