我正在开发GCMIntentService用于推送通知的应用程序。所以我想刷新ListView我的TabActivity. 那么有可能从GCMIntentService我收到 and 时做到这一点GCMIntentMessage吗?
例如
SecondTabActivity.callOnResume(); //or something like this
或者
SecondTabActivity.callOnCreate(); // or something like this
我需要在不使用的情况下执行此操作startActivity(intent);因为如果我这样做, SecondTabActivity 就会脱离我的状态TabHost,它就像 new 一样开始Activity。用于刷新的函数ListView位于onCreate() 和onResume()SecondTabActivity 中,这就是我要调用它们的原因。如果除此之外还有其他方法,请参考。谢谢