zoukankan      html  css  js  c++  java
  • 解决Android singleTask模式下PendingIntent不能给onNewIntent传值的Bug

    http://phenix.blogbus.com/logs/220656659.html

    博主简直碉堡了,

    我用PendingIntent给singleTask的顶层Activity传值一直收不到,因为在onNewIntent中getIntent是旧的Intent,并不是新的。

    所以要在onNewIntent调用setIntent(intent)就行了!

  • 相关阅读:
    605
    603
    509
    7-5
    6-5
    5-6
    5-3
    5-4
    5-5
    4-12
  • 原文地址:https://www.cnblogs.com/riskyer/p/3225736.html
Copyright © 2011-2022 走看看