[英]how to open particular fragment when notification is clicked
I have a notification in notification bar and i have 3 fragments in one of my activity. 我在通知栏中有一个通知,我的一项活动中有3个片段。 i want when i click the notification it will open particular fragment, Like what facebook notification do. 我想要当我单击通知时,它将打开特定的片段,就像Facebook通知那样。 I tried to search it on google n everywhere else but didnot match what i need. 我试图在Google N上的其他任何地方进行搜索,但与我需要的不匹配。 Example: i have 3 fragments 1 - for redeem value. 示例:我有3个片段1-兑换价值。 2 - for recharge. 2-充电。 3 - for anything. 3-什么。
Now if i get notification from Admin Panel like you can redeem your value, then that notification will open that particular fragment. 现在,如果我从管理面板收到通知(如可以兑换您的值),则该通知将打开该特定片段。 If i get notification to recharge then it will open that particular fragment like this i want all working. 如果我收到充电通知,它将像这样打开特定的片段,我希望所有片段都能正常工作。
Hope you clear, if not then please let me know. 希望您能清除,否则请通知我。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.