Code example for MalformedURLException

Methods: toString

0
				 
				Bitmap b = BitmapFactory.decodeStream(urlConnection.getInputStream());
				 
				image = b;
			}catch(MalformedURLException e){
				errorString = e.toString();
				return null; 
			}catch(IOException e){
				errorString = e.toString();
				return null; 
			} 
			 
			return null; 
		} 
		 
		 
		protected void onPostExecute(Void args){
			if(errorString.equals("")){
				setView.setImageBitmap(image);
			}else{ 
				//There was an error reading the image or there was no image located display error image