title: How to Update android app by programmatically without android market
body: <p>I need some help,</p>
  
  <p>1) I am developing app in which I want to display offline web site including videos so i added videos in raw folder for offline access of app and i want to change that videos after some days( may be add or delete some videos from app).
  so is it possible to update my app without using android market? </p>
  
  <p>The idea is when i start app it will parse json and check wether new version of app is available on my site or not. If it is available than it will start download of it(i don't want to open browser for download. update should be done within my app or in background ) and reinstall it .How can i do that by programmatically?</p>
  
  <p>also how can i cache the entire website in web view.currently i am using this code but it cache only visited pages (the page that we open in app) </p>
  
  <pre><code>webView.getSettings().setLoadsImagesAutomatically(true);
   webView.getSettings().setDomStorageEnabled(true);
   webView.getSettings().setAppCacheMaxSize(1024*1024*24);
   String appCachePath = getApplicationContext().getCacheDir().getAbsolutePath();
   webView.getSettings().setAppCachePath(appCachePath);
   webView.getSettings().setAllowFileAccess(true);
   webView.getSettings().setAppCacheEnabled(true);
   webView.setWebChromeClient(new WebChromeClient());
   webView.setWebViewClient(new WebViewClient());   
   if (savedInstanceState == null) {
   if(isNetworkAvailable() == true){
   webView.getSettings().setCacheMode(WebSettings.LOAD_DEFAULT);
   webView.loadUrl("http://www.xyz.com");
    } else {
   webView.getSettings().setCacheMode(WebSettings.LOAD_CACHE_ONLY);
   webView.loadUrl("http://www.xyz.com");
    }   } }
  </code></pre>
  
  <p>2)How can i install apk from mac to tablet by usb without clicking on run button of eclipse.
  I want to install this apk to 200 tablets, so i am looking for some batch program or some script which will be one click install script for app.
  I search on gooogle i found one <a href="http://forum.xda-developers.com/showthread.php?t=970348" rel="nofollow">Multiple apk on click</a> but i don't know that it will work on Non rooted tablet or not.</p>
  
  <p>Waiting for reply.
  Thank you </p>