0

I see many people have asked about this problem like here, here and ... but I can not find any solution. However, I see some background app on playstore can do it.

My purpose is that I want to open intent for set lock screen wallpager like enter image description here

This device is SamSung S2

Community
  • 1
  • 1

2 Answers2

1

Generally there is no (proper) documentation on how to set the Lock screen Wallpaper. Samsung doesn't allow it as far it goes.

In some Phones, we are able to see the Wallpaper we set through Wallpaper Manager purely dependent on the Device Stock OS. And we have no control over it specifically.

0
Intent intent = new Intent(Intent.ACTION_ATTACH_DATA);
intent.addCategory(Intent.CATEGORY_DEFAULT);
intent.setDataAndType(Uri.parse(mPath), "image/jpeg");
intent.putExtra("mimeType", "image/jpeg");
startActivity(Intent.createChooser(intent, "Set as: Home Screen"));
Akhtar
  • 91
  • 1
  • 2
  • 4
    please, don't just post code as an answer, it is always better to explain why and what you are doing ;) – Alex Cio May 20 '19 at 12:32