private Bitmap myBitmap;
URL myImageURL = null;
try {
myImageURL = new URL(imageURL);
HttpURLConnection connection = (HttpURLConnection)myImageURL .openConnection();
connection.setDoInput(true);
connection.connect();
InputStream input = connection.getInputStream();
myBitmap = BitmapFactory.decodeStream(input);
}
沒有留言:
張貼留言