B4A Question Get all the keys/values from a StatusBarNotification - cheveguerra    
Nov 3, 2022 keys from the object:
Sub Listener_NotificationPosted (SBN As StatusBarNotification)
LogColor..., like pkg, tag, key, shortcut, groupKey, etc:
(StatusBarNotification) StatusBarNotification(pkg...=0x0 color=0xff008069 category=msg vis=PRIVATE)))
Since the StatusBarNotification object...
link: Muchisimas gracias!!! lo reviso!! ?...
link: /reference/android/service/notification/StatusBarNotification...
B4A Question [SOLVED] Reading StatusBarNotification's extras - lemonisdead    
Mar 8, 2016 from the NotificationListener example :
Sub Listener_NotificationPosted (SBN As StatusBarNotification)
Log("NotificationPosted, package = " & SBN.PackageName & ", id = "...=android.app.Notification$BigTextStyle, android.showChronometer=false, android.icon=2130837792... p.SdkVersion >= 19 Then
Dim jno As JavaObject = SBN.Notification
Dim extras...
link: Try it with "get" instead of "getString"...
B4A Question Is it possible to save or serialize a StatusBarNotification object?? - cheveguerra (first post)    
May 28, 2022
I discovered a way to save a notification object to reuse it to send a message again so I still have to add the library. but soon I will bring news
That would be great, it would open some good...
link:
Ok, thank you anyway!! ?
try to get the id of the notification channel he is responsible for...
link:
Ok, thank you anyway!! ?
I discovered a way to save a notification object to reuse it to send...
link:
correct.
Ok, thank you anyway!! ?...
B4A Question Object should first be initialized (StatusBarNotification) - Neojoy (first post)    
May 12, 2021   
(1 reaction)
Post the code in Listener_NotificationPosted.
I think that I find out what is wrong
Sub Listener_NotificationPosted (SBN As StatusBarNotification)
Dim jno As JavaObject = SBN.Notification..., Null)
I was trying to get SBN.Notification before check if SBN was initialized, correct?...
link: Post the code in Listener_NotificationPosted....
link: be initialized (StatusBarNotification).
at anywheresoftware.b4a.AbsObjectWrapper.getObject(AbsObjectWrapper...
B4A Question How to convert a sbn.notification to save do a database (as string?) and revert it back to a notification - aeric (first post)    
Jul 30, 2025Are you referring to StatusBarNotification?
Maybe this thread helps:
https://www.b4x.com/android/forum/threads/get-all-the-keys-values-from-a-statusbarnotification.143922/...
B4A Question Save notification to database and retrieve it - Chicao99    
Aug 14, 2025Hi, I'd like to save a notification (StatusBarNotification.Notification) on a SQLite database and retrieve is few minutes later, but it's not working as I can only save and retrieve strings, any method to do this?...
Bug? ListenerService internal method cancelNotification error - Alain75    
Jan 15, 2026")) {
StatusBarNotification sbn = getSbnFromIntent(intent);
if (VERSION...("b4a_getactive")) {
StatusBarNotification all = this.getActiveNotifications();
if (all != null) {
StatusBarNotification var8 = all;
int var7 = all.length;
for(int var6 = 0; var6 < var7; ++var6) {
StatusBarNotification sbn = var8;...Hi,
I am developing an application which keeps a log of targeted notifications. The app lets...
B4A Tutorial NotificationListener library implementation tutorial - Erel    
Dec 15, 2013   
(4 reactions):
private Intent createIntent(String event, StatusBarNotification sbn) throws ClassNotFoundException... example:
@Override
public void onNotificationRemoved(StatusBarNotification arg0...("event");
StatusBarNotification sbn = StartingIntent.getObject().getParcelableExtra...)) {
StatusBarNotification sbn = intent.getParcelableExtra("sbn");
cancelNotification(sbn... StatusBarNotificationWrapper(), sbn));
}
else if (event.equals("removed"...
B4A Question Cannot cancel notification - catyinwong    
Jul 9, 2023I am writing to use notification listener to read whatsapp notifications and cancel it after read. but it does not cancel the notification (no action done).
Sub Listener_NotificationPosted (SBN As StatusBarNotification)
'do sth to handle msg
'cancel notification after read
SBN.notification.cancel(SBN.id)
End Sub...
Java Question How to create library that extends Service and has Abstract Public Methods - barx    
Aug 4, 2013 this.
As a side note the .getActiveNotifications method returns an array of type StatusBarNotification...OK, I'm having a look at creating a library for the new notification feature found in Android 4.3. NotificationListenerService. Obviously, being brand new there isn't much info about for...
link: the side note, StatusBarNotification also implements getNotification which is all you need to expose...
link: android.service.notification.StatusBarNotification;
import android.util.Log;
import anywheresoftware...
Page: 1  
2  
3  
4  
5  
6  
7