52ky 发表于 2022-6-15 16:49:03

104道android面试题(已修改完).doc

1.如何实现通知栏到聊天界面的跳转
首先,将聊天Activity设置为单任务模式,其次,在生成消息通知时,指定跳转到Activity为聊天Activity,以好友id为参数。在聊天Activity的onNewIntent方法和onCreate方法中,获取好友的聊天ID,加载与好友的聊天信息。

(1. how to jump from the notification bar to the chat interface
First, set the chat activity to the single task mode. Second, when generating a message notification, specify the jump to activity as the chat activity, with the friend ID as the parameter. In the onnewintent method and oncreate method of the chat activity, obtain the chat ID of the friend and load the chat information with the friend.)




页: [1]
查看完整版本: 104道android面试题(已修改完).doc