Hi!
In Android we hale lot of method to load image from url like Bitmap,etc..,
But if you wants to load image as faster please do this simple way..,
You may have the experience using UniversalImageLoader, i do the like. But different in logic,
Download this jar and add into your project than create an object for the ImageLoader class and finally call the display method..,
//default image if image is not exit
int dummy_image = R.drawable.default_image;
//ImageView
ImageView imv_content;
imv_content = (ImageView) findViewById(R.id.imv_content);
// class call from the jar file
ImageLoader iml = new ImageLoader(getApplicationContext());
//Image Path
String url_image_path= "your image full path";
//Method to display the image
iml.DisplayImage(url_image_path, dummy_image, imv_content);
It will take minimal amount of time only when compare with other loading process..,
Thank You!
Have A Happy Day..,
In Android we hale lot of method to load image from url like Bitmap,etc..,
But if you wants to load image as faster please do this simple way..,
You may have the experience using UniversalImageLoader, i do the like. But different in logic,
Download this jar and add into your project than create an object for the ImageLoader class and finally call the display method..,
//default image if image is not exit
int dummy_image = R.drawable.default_image;
//ImageView
ImageView imv_content;
imv_content = (ImageView) findViewById(R.id.imv_content);
// class call from the jar file
ImageLoader iml = new ImageLoader(getApplicationContext());
//Image Path
String url_image_path= "your image full path";
//Method to display the image
iml.DisplayImage(url_image_path, dummy_image, imv_content);
It will take minimal amount of time only when compare with other loading process..,
Thank You!
Please Leave Your Comment..,
Have A Happy Day..,
No comments:
Post a Comment