Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Intent.ACTION_SET_WALLPAPER In React Native #134

Open
ibelgin opened this issue Dec 17, 2020 · 0 comments
Open

Intent.ACTION_SET_WALLPAPER In React Native #134

ibelgin opened this issue Dec 17, 2020 · 0 comments

Comments

@ibelgin
Copy link

ibelgin commented Dec 17, 2020

Hope We Can Have Intent.ACTION_SET_WALLPAPER In React Native.
There are no modules out there with this functionality.

I searched a lot on google but couldn't find any solution to set wallpaper in react native
but came across intent and found solutions like the one's below

    Intent intent = new Intent(Intent.ACTION_ATTACH_DATA);
    intent.addCategory(Intent.CATEGORY_DEFAULT);
    intent.setDataAndType(uri, "image/jpeg");
    intent.putExtra("mimeType", "image/jpeg");
    this.startActivity(Intent.createChooser(intent, "Set as:"));
Intent intent = new Intent(Intent.ACTION_SET_WALLPAPER);
startActivity(Intent.createChooser(intent, "Select Wallpaper"));

There are Mostly Unanswered Questions In Stackoverflow

https://stackoverflow.com/questions/18700161/android-set-wallpaper-using-intent

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant