Unique id of an android activity

前端 未结 5 1204
渐次进展
渐次进展 2021-01-13 00:07

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

5条回答
  •  再見小時候
    2021-01-13 00:42

    hashCode() method in Activity,it returns an unique id of an android activity instance,but getTaskId() can not return unique value

提交回复
热议问题