Click here to Skip to main content
15,886,840 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hello i have a problem with universal-image-loader setting wallpaper from ViewPager when i set wallpaper it sets different wallpaper or i can say it sets the next wallpaper to the one i want to set i don't know how to fix it thanks in advance ..

pager class

 @Override
        public void onLoadingComplete(String imageUri, View view,
                Bitmap loadedImage) {
            spinner.setVisibility(View.GONE);
            current_bitmap = loadedImage;
        }

    });

b.setOnClickListener(new OnClickListener() {

    @Override
    public void onClick(View arg0) {
        WallpaperManager myWallpaperManager = WallpaperManager.getInstance(getApplicationContext());
        try {
          myWallpaperManager.setBitmap(current_bitmap);
        } catch (IOException e) {
          e.printStackTrace();
        }
    }
});
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900