How to determine which activity the interface belongs to based on the current interface?
We are in the process of research and development, most of the time to take over other people to write code, we want to modify a certain page of some very simple things, but do not know what the interface belongs to which activity, so we can not modify. Have to slowly find, so efficiency is not only low, and feel very boring, so this skill came into play, below please see:
public class Baseactivity extends activity{private String TAG = "baseactivity"; @Overrideprotected void OnCreate (Bundle sa Vedinstancestate) {super.oncreate (savedinstancestate); XLOG.D (TAG, GetClass (). Getsimplename ());}}
We are Just let the other activities inherit the base class, and then go to the corresponding page, the log will show the page belongs to which activity!
Android Development Tips Three: Know which activity is currently