Hi,
You code for viewing images in Android is fantastic but I was wondering if you can provide a little assistance to someone new at java and Android.
How can I automatically load the image without pressing a button if I already know the URL. I don’t know how to handle the View. I want to call the procedure from a spinner menu.
I would appreciate any help you can provide.
Thanks.
WCDewey
public void onClick(View view)
{
Context context = view.getContext();
Drawable image = ImageOperations(context,”http://www.911mr.com/photos/P24.jpg”,”image.jpg”);
ImageView imgView = new ImageView(context);
imgView = (ImageView)findViewById(R.id.image1);
imgView.setImageDrawable(image);
}
2 Comments
Jump to comment form | comment rss [?] | trackback uri [?]