Can someone explain this to me please:
Activity.getWindow().setFeatureInt(Window.FEATURE_ PROGRESS, level).
My understanding:
Activity is a class.
getWindow() is a public method of the Activity
setFeatureInt is a public method of the Window class.
So, in Android, is this on-the-fly binding, in that at compile time the target of the setFeatureInt is not known. The target can only be resolved at run time using the return value from getWindow(). Is this a feature of Android or Java? In C, I would expect the analogous syntax to be:
setFeatureInt(Activity.getWindow(),Window.FEATURE_ PROGRESS, level);
where the prototype for setFeatureInt would be:
void setFeatureInt(struct *Window; int mFeature; int mLevel);
I dont see any difference really, other than the way the statement is constructed, inline (Java) as apposed to parameterised ("C")
Activity.getWindow().setFeatureInt(Window.FEATURE_ PROGRESS, level).
My understanding:
Activity is a class.
getWindow() is a public method of the Activity
setFeatureInt is a public method of the Window class.
So, in Android, is this on-the-fly binding, in that at compile time the target of the setFeatureInt is not known. The target can only be resolved at run time using the return value from getWindow(). Is this a feature of Android or Java? In C, I would expect the analogous syntax to be:
setFeatureInt(Activity.getWindow(),Window.FEATURE_ PROGRESS, level);
where the prototype for setFeatureInt would be:
void setFeatureInt(struct *Window; int mFeature; int mLevel);
I dont see any difference really, other than the way the statement is constructed, inline (Java) as apposed to parameterised ("C")