Random wallpaper changer
Moderator: Martin
Random wallpaper changer
Hi there,
I've realised a very simple flow which changes the wallpaper every 4 hours.
It works fine but, even though I've selected "Home screen" as Type, also the lock screen image is changes at the same time.
I've then tried to modify the Type in "Lock screen" and effectively only the image of the lock screen changes.
Where am I doing wrong?
Thanks
I've realised a very simple flow which changes the wallpaper every 4 hours.
It works fine but, even though I've selected "Home screen" as Type, also the lock screen image is changes at the same time.
I've then tried to modify the Type in "Lock screen" and effectively only the image of the lock screen changes.
Where am I doing wrong?
Thanks
- Attachments
-
- wallpaper.png (52.66 KiB) Viewed 26722 times
Re: Random wallpaper changer
From my test, changing home screen wallpaper also change the lockscreen. So in order to change only the home screen wallpaper, you have to use it twice; once to change home screen (and lockscreen) and another to change back the lockscreen to the original one.
Index of Automagic useful thread List of my other useful posts (and others')
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.
Re: Random wallpaper changer
Thanks Desmanto you confirmed my doubt.
The trick that you suggested is the one that effectively I adopted.
However, I've tried with another app and it is possible to change the two wallpapers independently.
I assume that we can consider it as a sort of bug, anyway.
The trick that you suggested is the one that effectively I adopted.
However, I've tried with another app and it is possible to change the two wallpapers independently.
I assume that we can consider it as a sort of bug, anyway.
Re: Random wallpaper changer
What is the another app? Tasker?
AFAIK, the action has been like this since Nougat 7.0+. I wonder if there are nougat 7.0+ user who can change (using automagic Set wallpaper action) only the home screen without changing the lockscreen at the same time.
AFAIK, the action has been like this since Nougat 7.0+. I wonder if there are nougat 7.0+ user who can change (using automagic Set wallpaper action) only the home screen without changing the lockscreen at the same time.
Index of Automagic useful thread List of my other useful posts (and others')
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.
Re: Random wallpaper changer
No, it is not Tasker, I've tried with Automate.
Hence, since with that app it is possible, I thought that there is something wrong with Automagic.
Hence, since with that app it is possible, I thought that there is something wrong with Automagic.
- digitalstone
- Posts: 342
- Joined: 21 Oct 2017 12:36
- Location: The Netherlands
Re: Random wallpaper changer
Android 7.1 here.Desmanto wrote:I wonder if there are nougat 7.0+ user who can change (using automagic Set wallpaper action) only the home screen without changing the lockscreen at the same time.
I can confirm home-screen and lock-screen are both individually changeable through the automagic "Set wallpaper action".
Phone: LG Nexus 5X (rooted vanilla Android 7.1.2)
Re: Random wallpaper changer
@Mices7 : Do you try it on the same device? If same device and ROM, it seems to be Automagic's bug.
@digitalstone : Thanks for the confirmation. This immediately ruled out the limitation on Nougat 7.1. I am using RR 6.2.0 Oreo 8.1 and changing home screen will change the lockscreen too.
@digitalstone : Thanks for the confirmation. This immediately ruled out the limitation on Nougat 7.1. I am using RR 6.2.0 Oreo 8.1 and changing home screen will change the lockscreen too.
Index of Automagic useful thread List of my other useful posts (and others')
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.
Re: Random wallpaper changer
On my G5+ 8.1 stock rom with automagic changeing home screen wallpaper changes lock screen wallpaper too.
But when i tested it using java script it worked
@Martin can you tell me how to use combination of both flags?
But when i tested it using java script it worked
Code: Select all
homewall="/storage/emulated/0/OOE4xAnBhKo_Full.jpg";
lockwall="/storage/emulated/0/Pictures/Mysplash/KOKxOB8550Q.jpg";
WallpaperManager=callJavaStaticMethod("android.app.WallpaperManager", "getInstance(android.content.Context)", getContext());
homewall=callJavaStaticMethod("android.graphics.BitmapFactory", "decodeFile(java.lang.String)", homewall);
lockwall=callJavaStaticMethod("android.graphics.BitmapFactory", "decodeFile(java.lang.String)", lockwall);
//set home screen wall
callJavaMethod(WallpaperManager, "android.app.WallpaperManager", "setBitmap(android.graphics.Bitmap, android.graphics.Rect, boolean, int)", homewall, null, true, getJavaStaticField("android.app.WallpaperManager", "FLAG_SYSTEM"));
//set lock screen wall
callJavaMethod(WallpaperManager, "android.app.WallpaperManager", "setBitmap(android.graphics.Bitmap, android.graphics.Rect, boolean, int)", lockwall, null, true, getJavaStaticField("android.app.WallpaperManager", "FLAG_LOCK"))
Re: Random wallpaper changer
Hi Desmanto,yes I tried with the same device and ROM.Desmanto wrote:@Mices7 : Do you try it on the same device? If same device and ROM, it seems to be Automagic's bug.
@digitalstone : Thanks for the confirmation. This immediately ruled out the limitation on Nougat 7.1. I am using RR 6.2.0 Oreo 8.1 and changing home screen will change the lockscreen too.
BTW, I'm using Oreo 8.0.
Thanks
Re: Random wallpaper changer
You can try following flow. Just change path where your images are stored.Mices7 wrote:Hi Desmanto,yes I tried with the same device and ROM.Desmanto wrote:@Mices7 : Do you try it on the same device? If same device and ROM, it seems to be Automagic's bug.
@digitalstone : Thanks for the confirmation. This immediately ruled out the limitation on Nougat 7.1. I am using RR 6.2.0 Oreo 8.1 and changing home screen will change the lockscreen too.
BTW, I'm using Oreo 8.0.
Thanks
http://automagic4android.com/flow.php?i ... 215a125bed