I started to build a game, this game gets images from server.
I used Bitmap to convert the IMAGE*S* and its works slowly.
Its take 25 - 40 seconds to load 22 images (100KB for each image).
public static Bitmap getBitmapFromURL(String src) {
try {
URL url = new URL(src);
HttpURLConnection connection = (HttpURLConnection) url.openConnection();
connection.setDoInput(true);
connection.connect();
InputStream input = connection.getInputStream();
Bitmap myBitmap = BitmapFactory.decodeStream(input);
return myBitmap;
} catch (IOException e) {
e.printStackTrace();
return null;
}
}
Implementation:
Bitmap pictureBitmap = ImageFromUrl.getBitmapFromURL(path);
PS..
I used LazyList before ,and it's not for my goal.
More offers?
Tnx....