没见过,不是android定义的,你哪里搞来的代码

解决方案 »

  1.   

    前一个没看到过,默认的就是把,后一个:
    FLAG_ACTIVITY_NO_USER_ACTION
    文档的解释是:
    If set, this flag will prevent the normal onUserLeaveHint() callback from occurring on the current frontmost activity before it is paused as the newly-started activity is brought to the front.应该就是调不调用onUserLeaveHint() 的标志。 默认调用的。
    如果设了后,就不调用了。Activity中的定义是这样 protected void onUserLeaveHint() {
        }这个要你重载去自己处理一些事情。这个回调是刚好在onPause前面调用的,你可以去处理一些事情。