Android App Development
iOS App Development
Flutter App Development
Cross Platform App Development
Hire on-demand project developers and turn your idea into working reality.
Big thanks to Webkul and his team for helping get Opencart 18.104.22.168 release ready!
In this article, we will read How we can use bubble in Android Studio. When the device is locked or the always-on-display is active, bubbles appear just as a notification normally would.
Bubbles are created by the Notification API, so you send your notification as normal. If you want your notification to display as a bubble, you need to attach some extra data to it.
when you send a notification by bubble then you need to create a Notification channel.
The bubble can be disabled by the user in that case bubble will show just like the notification.
In MainActivity we use NotificationManager to send notifications to Bublle. We send data by intent. Then notify to bubble.
In activity_main we take a button and on click this button we show a bubble.
In BubbleActivity you can see we replace show a snackbar.we get data and show just like notification.
You can see in screenshot there is a button create bubble and when we click on that button then it will show a bubble.
So here we discussed How we can use bubble in Android Studio. Thanks for reading this blog and You can get other blogs from here
Your email address will not be published. Required fields are marked*
Save my name email and website in this browser for the next time I comment.
Be the first to comment.
Enquiry or Requirement
If you have more details or questions, you can reply to the received confirmation email.