static public void getMapImage(String imageUrl)
    {
         try {
        //    String imageUrl = "http://maps.google.com/staticmap?center=51.110851,17.029839&zoom=15&size=800x600&maptype=satellite&key=AIzaSyD9KVTMcGRQ37C0vVq5h2mq0S6N_GU6vCk
//&format=jpg";

        	 System.out.println("Url:"+imageUrl);
            String destinationFile = "image.jpg";
            String str = destinationFile;
            URL url = new URL(imageUrl);
            InputStream is = url.openStream();
            OutputStream os = new FileOutputStream(destinationFile);

            byte[] b = new byte[2048];
            int length;

            while ((length = is.read(b)) != -1) {
                os.write(b, 0, length);
            }
               
            os.flush();
            is.close();
            os.close();
            
        } catch (IOException e) {
            e.printStackTrace();
            System.exit(1);
        } 
    };