Questions tagged [wallpapermanager]

30 questions
0
votes
0 answers

How to make wallpaper fit the screen android java?

I Fetch Images from firebase database how can i make the wallpapers fit the screen i have tried the fitScale:XY but didnt work alos the function createdBitmap. the problem is not with firebase I want to fit the image to the screen size of any…
0
votes
0 answers

wallpaper_manager 1.0.10: [VERBOSE-2:dart_vm_initializer.cc(41)] Unhandled Exception: type 'String' is not a subtype of type 'int?' in type cast

I am trying to set wallpaper using wallpaper_manager 1.0.10. But it is returning an error in the platform_channel.dart file. This is how I am setting the wallpaper. var file = await DefaultCacheManager().getSingleFile(url); final String result =…
Syed Arsalan Kazmi
  • 949
  • 1
  • 11
  • 17
0
votes
0 answers

Activity unauthorized causes ondestroy and then immediately oncreate

The application has 2 functions, save the picture to the phone's memory and set the picture on the wallpaper. They differ only in that the install button has a call to WallpaperManager. When you click install on Android 12+, onDestroy is called, and…
RegisteR
  • 13
  • 3
0
votes
0 answers

Wallpaper not properly fit on device screen, it either zoom or cropped

I created wallpaper app with glide using link images. I have three buttons to set image as wallpaper, lock-Screen and Home_Screen on device screen. But when I set this image as wallpaper its either zoom or cropped. I want image should fit on every…
0
votes
2 answers

How to set wallpaper in android that fit across all the screens without stretching, Zooming and cropping

Note: Please don't mark it as duplicate as the same question is asked years back, which might have worked then, but not working now. using below code my wallpaper is either stretching to screen 2 and 3 or getting cropped at the bottom of the screen…
WhiteShadow
  • 786
  • 5
  • 5
0
votes
0 answers

I have a click button that sets the wallpaper from URL both for lock and home screen but it does not work for lockScreen in API level 28 or lower

I am tring to set an image from URL as wallaper for both home screen and lock screen.it is not working for lock screen for API level 28 or lower but works for home screen. val policy = StrictMode.ThreadPolicy.Builder().permitAll().build() …
Muaz Khan
  • 27
  • 6
0
votes
1 answer

Android Application wallpaper functionality not implemented; not sure why?

I am trying to follow a few different tutorials to have a ViewPager that lets a user swipe through images and then set the currently viewed image as their wallpaper. so far I have not been successful in getting the wallpaper set, and there is an…
Alexander
  • 13
  • 3
0
votes
0 answers

Xamarin - Wallpaper error: no non-static method "Landroid/app...."

I want to get and set wallpaper image but it gives to me error in Android 6.0 API 23 but it is working great in Android 9. I also tried Application.Context and this keyword instead of ApplicationContext My exception; Exception image My…
0x000000F4
  • 60
  • 8
0
votes
0 answers

How can I change device Wallpaper after some time automatically?

I am setting the wallpaper with WallpaperManager, it works well when I set a single Wallpaper with the on-click button. But the main feature is that: when a user enters time from AlertDialog then wallpaper should change after one, according to the…
0
votes
0 answers

How to call right way set Wallpaper intent?

I'm working wallpaper application and having a problem with set wallpaper intent. I'm tried FileProvider, nothing changed. My code showing this intent: (1) https://i.ibb.co/RcW15qb/1.png after select: (2)…
Castiel
  • 1
  • 3
0
votes
0 answers

Set a wallpaper from the image view retrieved from firebase - android

I am new to android. I want to set a wallpaper from the imageview which is retrieved from the firebase. I made a download and set button. The download button works great. The set button doesn't work. I have seen answers on Stackoverflow but they are…
0
votes
1 answer

Setting Home Screen wallpaper programmatically has unintended effects (Android)

I have made an app that allows the user to either set the home screen wallpaper, lock screen wallpaper or both wallpapers to a gradient color. It runs without any issues. However, there is something that's bugging me. When a user has a live…
0
votes
1 answer

How to Android Studio LockScreen Wallpaper

private void UpdateMyWallpaper() { myWallManager = WallpaperManager.getInstance(getApplicationContext()); myDrawable = myWallManager.getDrawable(); myCurrentWallpaper.setImageDrawable(myDrawable); } This work walpaper but i how to…
0
votes
1 answer

Set wallpaper without wallpaper manager, call default set as methods

i am trying to call default wallpaper set as method but its not working i have tried so many code over stack but its not working so please any one have solution for it please reply Uri uri = Uri.parse(url.toString()); Intent…
-1
votes
1 answer

How to make android recognise app as wallpaper app

I have created a wallpaper application and everything works fine except it won't show in the list of "apply wallpapers from" option on other apps. Is there anything to make android recognise the app as a Wallpaper app.
Noyal Jose
  • 187
  • 3
  • 15
1
2