google play - How to Update android app by programmatically without android market -
i need help,
1) developing app in want display offline web site including videos added videos in raw folder offline access of app , want alter videos after days( may add together or delete videos app). possible update app without using android market?
the thought when start app parse json , check wether new version of app available on site or not. if available start download of it(i don't want open browser download. update should done within app or in background ) , reinstall .how can programmatically?
also how can cache entire website in web view.currently using code cache visited pages (the page open in app)
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"); } } }
2)how can install apk mac tablet usb without clicking on run button of eclipse. want install apk 200 tablets, looking batch programme or script 1 click install script app. search on gooogle found 1 multiple apk on click don't know work on non rooted tablet or not.
waiting reply. give thanks
there 2 ways can first utilize force notifications , tell users new version when click on notification download apk web server , allow them install (i have used 1 )
other alternative may polling web server after prepare time say(one day) , check if new version available 1 time available force notification area new version available when user clicks 1 time again repeat above procedure need web server request send , create users download application
android google-play
No comments:
Post a Comment