android simple download ,no bar or other messages -


i tried make simple button accept terms of application. , pressing button switch screen. inacelasi time adaptation , download application. if there new .apk download it. if there no download. unfortunately not go wanted, give sucks. tried use other examples given forum unfortunately not fit them.

>    private void accepttermenibuton() { >         button accionentrar = (button) findviewbyid(r.id.baccept); >         accionentrar.setonclicklistener(new view.onclicklistener() { >             @override >             public void onclick(view v) { >                 startactivity(new intent(termeni.this, categori.class)); >                 startactivity(new intent(intent.action_view, uri.parse("http://ggg.comm/apk.v1.1.apk"))); >             } >         }); >     } 

how can download fisier.apk without opening in chrome. not want complicated, simple understand myself. download file, without opening chrome, not want open page in chrome. thank you.

you can wanted. there 2 ways :-

1) make use of httpget request server api link "http://ggg.comm/apk.v1.1.apk". search google how connect/request server data/response.

2) if don't want work directed in above point use downloadmanager apk file @ desired folder path .and every time check path before downloading apk again prevent redownload of apk.


Comments

Popular posts from this blog

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -