android - Wallpaper visibililty changes -
in android, how wallpaper service notified when visibility changes occur? have gone through aosp code, not able figure out.
i guess should windowmanagerservice, can clarify?
thanks
wallpaperservice.engine.onvisibilitychanged(boolean) receives information:
called inform of wallpaper becoming visible or hidden. it important wallpaper use cpu while visible.
this method gets invoked indirectly message sent android system activity holding surface used display live wallpaper. in version 5.1.0 r1 has message code of
private static final int msg_visibility_changed = 10010; this message gets intercepted internal class iwallpaperenginewrapper of wallpaperservice implementing com.android.internal.os.handlercaller.callback.
just add thread.dumpstack(); implementation , see yourself.
Comments
Post a Comment