Closed AndroidDeveloperLB closed 5 months ago
@AndroidDeveloperLB Can you fix this?
@linpengtian Yes, I already wrote you how to.
Thank you.
fixed.
@linpengtian You didn't fix it well, because you used registerReceiver that is too new for the API level:
This will cause a crash on older versions of Android. Instead you should use ContextCompat, or check the version yourself.
Also, BTW, why do you use BootBroadCast to start VideoLiveWallpaperService ? It already starts on its own when the app is set as live wallpaper...
It seems you've forgotten to use RECEIVER_NOT_EXPORTED for it.
Should be:
Otherwise it crashes on Android 14 (and maybe before too):