I need to get an unique id of an android activity instance. I\'d like to take the string which the activitymanager writes in the log (for example: ActivityManager: Activity
every where in your project :
MainActivity.class.hashCode();
in Activity
this.hashCode();
You can even get hashCode from context
hashCode