java - Android Image processing Code Explaination -
i new programmer.could please explain these line of code?
getwindow().addflags(windowmanager.layoutparams.flag_fullscreen); setrequestedorientation(activityinfo.screen_orientation_landscape);
it's pretty self explanatory, know.
in first line of code, first gets window instance using activitie's getwindow()
method. there addflags(int)
method in window
instance got. can call
getwindow().addflags(/*blah blah blah*/);
what addflags
mean adds special attributes window. in case, windowmanager.layoutparams.flag_fullscreen
constant defined in windowmanager.layoutparams
class. think can it. this line of code sets window full screen! easy, huh?
the second line of code, method name suggests, (setrequestedorientation
) sets orientation of screen something. , what's in brackets i.e. screen_orientation_landscape
. again screen_orientation_landscape
constant defined in activityinfo
class. this line of code sets orientation landscape mode.
by way, code doesn't process images @ all
Comments
Post a Comment