android - Set wallpaper from list<Bitmap> using FlipperView -


i have flipperview list , want set wallpaper use mywallpapermanager.setbitmap(bitmap), didn't understand how take exact picture load in flipperview last. working sample_0, didin't if try change .decoderesource using id. advance.

public boolean onoptionsitemselected(menuitem item) {      bitmap bitmap = bitmapfactory.decoderesource(getresources(), r.drawable.sample_0);     switch (item.getitemid()) {     case r.id.action_set_wal:     txtpages.settext("done");      try {         wallpapermanager mywallpapermanager  = wallpapermanager.getinstance(getapplicationcontext());          mywallpapermanager.setbitmap(bitmap);     } catch (ioexception e) {      }     return true; }     return false;  } 


Comments

Popular posts from this blog

html - Sizing a high-res image (~8MB) to display entirely in a small div (circular, diameter 100px) -

java - IntelliJ - No such instance method -

identifier - Is it possible for an html5 document to have two ids? -