0

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!!

Hiren Nakrani
  • 234
  • 3
  • 15

1 Answers1

0

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();
    }

   }});
Voora Tarun
  • 1,266
  • 1
  • 20
  • 38
  • 1
    no , i don't want to use wallpaper manger cause from this i can set my wallpaper at home screen only while open that intent will let user to set picture as home screen , lockscreen ,crop etc. so my question is how can i open that intent? – Hiren Nakrani Jun 10 '17 at 10:37
  • @Tarun Voora The question was another, i have updown this answer. – Fernando Torres Dec 27 '18 at 04:39