I am trying to get a handle on LogCat by adding some code from a textbook example to one of my projects.
My project uses ABS
When I try and use:
@Override
public void onPause(){
super.onPause();
Log.d(TAG,"onPause() called");
}
I am running into the error
TAG has private access in 'com.actionbarsherlock.app.SherlockFragmentActivity'
Why is this, and how can I get around it? I've had a search around on Google but not found anything relating to this.
There's a private field TAG
in the parent SherlockFragmentActivity
and you cannot use it.
Instead, you should specify your own tag in your class, e.g.
private static final String TAG = YourActivity.class.getSimpleName();