【问题标题】:Why is onNewIntent() not used together with singleInstance launchmode?为什么 onNewIntent() 不与 singleInstance 启动模式一起使用?
【发布时间】:2016-07-05 12:21:53
【问题描述】:

为什么 onNewIntent() 不与 singleInstance 启动模式一起使用?我的意思是,如果我重新启动我的 singleInstance Activity,我可能仍想获得那个新 Intent,对吧?

【问题讨论】:

    标签: android android-activity launchmode onnewintent


    【解决方案1】:

    它确实被调用了。

    如果您启动具有launchMode="singleInstance"Activity 并且Activity 已在任务中运行,则该任务将被带到前台并调用onNewIntent()

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2011-03-14
      • 1970-01-01
      • 1970-01-01
      • 2010-12-15
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多