getting image from remote server issue
<p>Just two things, is this a good simple way to grab images? also when i do try it on the android AVD nothing gets displayed on screen as well as in log_cat, no errors or crashes. Here is my code: </p>

<pre><code>public class MainActivity extends Activity {
Bitmap bitmap = null;


@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_main);

    try{
        bitmap = getBitmap("https://twimg0-a.akamaihd.net/profile_images/2275552571/image_normal.jpg");
        ImageView img = (ImageView) findViewById(R.id.img);
        img.setImageBitmap(bitmap);
    }catch(Exception e){

    }

}

public Bitmap getBitmap(String bitmapUrl) { 

              try {

                URL url = new URL(bitmapUrl);

                return BitmapFactory.decodeStream(url.openConnection().getInputStream());

              }catch(Exception ex) {return null;}

            }


 }
</code></pre>
