title: how could I allow my customers to update my application
body: <p>I have finished building an android application, I still have to do one last step, which is open a window for updating.</p>
  
  <h3>what I have thought about</h3>
  
  <p>there should be two scenarios:</p>
  
  <ul>
  <li><p>an important update, which means a new version contains a lot of different from the last update and I don't want my users to use the old version any more so in this case whenever the user open the application, he MUST update to the newest version in order to work with the application again. for instance, the newest version contains new functionality, or contains a new data representation.</p></li>
  <li><p>not important update, which means that the user should update the application but it is not a necessary step. for example, the newest version just contains more beautiful images.</p></li>
  </ul>
  
  <h3>my question </h3>
  
  <p>what is the best practice to allow my users to update the new version of the application.</p>
  
  <p>In addition, I thing it is something about the URI which contains the package of the application in <code>play store</code>, for example:</p>
  
  <pre><code>Intent intent = new Intent(
                          Intent.ACTION_VIEW,
                          Uri.parse("market://details?id=com.google.android.apps.maps"));
                  startActivity(intent);
  </code></pre>
  
  <p>in that code, I allow my users to download the <code>Google Map</code>application from <code>play store</code>.</p>
  
  <h3> any help would be appreciated </h3>