Update Activity.java

updated to enable/disable logging status