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
Post a Comment