Android – How to download a file from a webserver

Using Async task call when you want to download file : new DownloadFileFromURL().execute(file_url); public class MainActivity extends Activity { // Progress Dialog private ProgressDialog pDialog; public static final int progress_bar_type = 0; // File url to download private static String file_url = “http://www.qwikisoft.com/demo/ashade/20001.kml”; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); new DownloadFileFromURL().execute(file_url); } /** … Read more

Google Maps output=kml broken?

This way of extracting the Google Directions from Google by parsing the KML file is no longer available since 27 July 2012 (because Google has changed the structure of retrieving Google Directions, now you can only get it by JSON or XML), it is time to migrate your code to JSON instead of KML. See … Read more

Why retrieving Google Directions for Android using KML data is not working anymore? [duplicate]

Update: Since Android Google Maps v2 is now used, the code needs to be adjusted to work on v2 maps which can be found here. Original Answer: This way of extracting the Google Directions from Google by parsing the KML file is no longer available since 27 July 2012 (because Google has changed the structure … Read more