I am trying to open a default intent of android gallery (screenshot given below).
for this i have referred some SO Questions but none of them are worked for me Question and this Question
here's a screenshot what i want... samsung device's gallery
this is a working app on playstore.. wallpaperApp
can Anyone please tell me how can i achieve this?
Thanks In Advance!!
You can use wallpaper manager to set image as wallpaper.
WallpaperManager myWallpaperManager
= WallpaperManager.getInstance(getApplicationContext());
try {
myWallpaperManager.setResource(R.drawable.wallpaper);
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}});
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.