I am trying to download .docx file. I would download using HTTP connection. But link is not direct link. So I am using intent to open url in browser. Consequently, browser will download it.
String url = "http://dev.businessinfo.uz/document/template/download/link/528b07d162135";
Intent i = new Intent(Intent.ACTION_VIEW);
i.setData(Uri.parse(url));
startActivity(i);
Problem is file is downloaded in bin file extention which can not be opened by doc viewer application.
How to solve this problem?