Android Setting Wallpaper with service chooser -


i developing application have lot of wallpapers in it. want build dialog appears when user clicks on images , , ask user service use setting wallpaper. (home screen, home , lock screen , whatsup , etc.)

i have found solution myself , here code ;

file f = new file(path);  //                   uri picuri = uri.fromfile(f);                   intent setas = new intent(intent.action_attach_data);                 setas.setdataandtype(picuri, "image/*");                 //setas.putextra(intent.extra_stream,picuri);                 startactivityforresult(intent.createchooser(setas, "set as"), 0); 


Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -