I was developing a slideshow uploading images from URLs I found a library developed by a Russian, the Universal Image Loader , but this slideshow will be used in the app in the tablet version. In the mobile version I use a listview .
The only problem is that slideshow was giving error in version 3.0 which is just the minimum version for tablet .
I make the connection to webservice and I bring in the URLs that constantly change, then I use the pager and library classes.
> String[] imageUrls = new String[logos.size()];//logos é um List<String> que contem as urls
imageUrls = (String[]) logos.toArray(imageUrls);
//String[] imageUrls = bundle.getStringArray(Extra.IMAGES);
int pagerPosition = bundle.getInt(Extra.IMAGE_POSITION, 0);
if (savedInstanceState != null) {
pagerPosition = savedInstanceState.getInt(STATE_POSITION);
}
options = new DisplayImageOptions.Builder()
.showImageForEmptyUri(R.drawable.stub)
.showImageOnFail(R.drawable.stub)
.resetViewBeforeLoading(true)
.cacheOnDisc(true)
.imageScaleType(ImageScaleType.EXACTLY)
.bitmapConfig(Bitmap.Config.RGB_565)
.considerExifParams(true)
.displayer(new FadeInBitmapDisplayer(300))
.build();
pager = (ViewPager) findViewById(R.id.pager);
pager.setAdapter(new ImagePagerAdapter(imageUrls));
pager.setCurrentItem(pagerPosition);
Is there any other way to make a slideshow or some alternative, for example a well-structured grid uploading images from URLs?
Image of the error you are giving