开发者

Query regarding notification on Android

I have the following requirement.

1> I have developed an Android mobile application & lets assume the user is currently on screen X.

2> If the user clicks on the HOME button of the mobile device , the mobile application goes to background & the user is currently on the HOME screen of the mobile device.

3> I want to show an icon of the my mobile application on the top of status bar at the extreme left (where the battery strength , clock , signal of the devi开发者_StackOverflow中文版ce) are shown , to inform the user that my mobile application is running on background. If the user clicks on the icon , he should be navigated to the screen X of the mobile application.

Actually , it should be such that whenever my mobile application is on background & the user is on the HOME screen of the mobile device, the icon of my application should be displayed on the status bar.

I have seen such an implementation but I am not sure how can I implement this type of notification.

Kindly provide your suggestions/sample code.

Thanks in advance.

Warm Regards, CB


You need to look at the Notification functionality.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜