Hello
I am trying to control Webkit LOG in rumtime.
For example, Webkit FrameLoader class have the log feature like this.
if (DebugFlags.FRAME_LOADER) {
Log.v(LOGTAG, "FrameLoader: http " + mMethod + " load for:
"
+ mListener.url());
}
and this DebugFlags.FRAME_LOADER is "public static final" constant and
can be changed only in compile time.
So to change this variable in rumtime, i changed the declartion of
this variable and remove the "final" constraint.
public class android.webkit.DebugFlags {
...
public static boolean FRAME_LOADER = false;
...
}
And in browser application, i made new preference to enable/disable
this variable.
boolean logflag =
preperence.getBoolean("LOG_WEBKIT_FRAME_LOADER",
false );
android.webkit.DebugFlags.FRAME_LOADER = logflag;
android.util.Log.v("browser", "Frameloader =" +
android.webkit.DebugFlags.FRAME_LOADER + " " + logflag );
But if i enable this variable to true, the FrameLoader LOG does not
come even though
android.util.Log.v("browser", "Frameloader =" +
android.webkit.DebugFlags.FRAME_LOADER + " " + logflag );
print "true".
Why FrameLoader class consider DebugFlags.FRAME_LOADER as false even
though i changed the variable to true in browser application ?
if (DebugFlags.FRAME_LOADER) {
Log.v(LOGTAG, "FrameLoader: http " + mMethod + " load for:
"
+ mListener.url());
}
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en