Is it possible to create a notification bar that contains multiple icons horizontally and each icon launches a separate service/activity?
Is it possible to create a notification bar that contains multiple icons horizontally and
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
No, a notification only has a single
PendingIntent(as seen in this API method). You could conceivably create a custom notification layout with multiple icons, but you could only launch one activity.Update:
Actually if you read that doc carefully, it looks like as of API 11, you can do what you’re trying to accomplish by setting
RemoteViews.setOnClickPendingEventon your views in your custom layout!