I am using URLConnection to download the html file from an android app. But I want the HTML content based on the device-locale.
Suppose user send the request from German locale then response should be in german language. I am expecting that URLConnection should send accept-language according to device-locale, similar to ajax calls. But accept-language header is not present in the request made by URLConnection.
Do I need to set request header explicitly or are there any alternative?
Thanks in advance.