java当应用程序打开时,如何将通知内容发送给活动?
当我通过Intent单击通知本身时,我可以通过调用onNewIntent将通知内容发送给活动
但我如何通过GcmListenerService呼叫onNewIntent
我试过这个:
Context.startActivity(new Intent (context, MainActivity.class));
但它导致了坠机
告诉我,我该怎么办
你可以在下面搜索框中键入要查询的问题!
当我通过Intent单击通知本身时,我可以通过调用onNewIntent将通知内容发送给活动
但我如何通过GcmListenerService呼叫onNewIntent
我试过这个:
Context.startActivity(new Intent (context, MainActivity.class));
但它导致了坠机
告诉我,我该怎么办
共 (0) 个答案