This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | // Put custom image marker on map and download image from URL. | |
| // Add this dependency in build.gradle(app) | |
| // compile 'com.google.maps.android:android-maps-utils:0.4' | |
| public Bitmap getBitmapFromURL(String src) { | |
| try { | |
| java.net.URL url = new java.net.URL(src); | |
| HttpURLConnection connection = (HttpURLConnection) url | |
| .openConnection(); | |
| connection.setDoInput(true); |