Private static InputStream fetch(String urlString) throws MalformedURLException, IOException { conn = (HttpURLConnection)(new URL(urlString)).openConnection(); conn. SetDoInput(true); conn.connect(); DefaultHttpClient httpClient = new DefaultHttpClient(); HttpGet request = new HttpGet(urlString); HttpResponse response = httpClient. Execute(request); return conn.getInputStream(); } Resources res; // ***********New Function For Fatching public static Drawable LoadImage(String URL, BitmapFactory.
Options options) { Drawable drawable = null; Bitmap bm = null; try { if (fetch(URL)! = null) { try { InputStream obj = (InputStream)fetch(URL); bm = BitmapFactory. DecodeStream(obj,null,options); obj.close(); conn.disconnect(); } catch(OutOfMemoryError e){} catch(IndexOutOfBoundsException e){} drawable = new BitmapDrawable(bm); return drawable; } else { bitmap = BitmapFactory.
DecodeResource( DefaultDisplay.mContext.getResources(), R.drawable. Profileplaceholder); drawable = new BitmapDrawable(bitmap); return drawable; } } catch (Exception e) { Log. E("GUIMethodClasas", "fetchDrawable failed", e); return null; } } I am using this LoadImage function for fetching image form url it is working fine.
Just pass the url and bitmapoption value like 1,2,3,4,5 according to bitmap quality. I hope you got your answer.
The image view. * Instantiates a new bitmap displayer.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.