Iterate over status bar notification elements
up vote
0
down vote
favorite
How can I iterate over status bar notification elements? I'm using NotificationListenerService
. I want to do this to get the direction icon/picture.
I already tried sbn.getNotification().getSmallIcon()
, sbn.getNotification().extras.get(Notification.EXTRA_PICTURE)
and sbn.getNotification().getLargeIcon()
but I'm not able to get the picture/icon
I would really appreciate if someone can help me.
android android-notifications android-maps-v2
add a comment |
up vote
0
down vote
favorite
How can I iterate over status bar notification elements? I'm using NotificationListenerService
. I want to do this to get the direction icon/picture.
I already tried sbn.getNotification().getSmallIcon()
, sbn.getNotification().extras.get(Notification.EXTRA_PICTURE)
and sbn.getNotification().getLargeIcon()
but I'm not able to get the picture/icon
I would really appreciate if someone can help me.
android android-notifications android-maps-v2
Notice how the notification doesn't align with how other notifications look - this is most likely a custom content view, and it has anImageView
as one of the components in the layout.
– Pawel
Nov 12 at 18:40
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
How can I iterate over status bar notification elements? I'm using NotificationListenerService
. I want to do this to get the direction icon/picture.
I already tried sbn.getNotification().getSmallIcon()
, sbn.getNotification().extras.get(Notification.EXTRA_PICTURE)
and sbn.getNotification().getLargeIcon()
but I'm not able to get the picture/icon
I would really appreciate if someone can help me.
android android-notifications android-maps-v2
How can I iterate over status bar notification elements? I'm using NotificationListenerService
. I want to do this to get the direction icon/picture.
I already tried sbn.getNotification().getSmallIcon()
, sbn.getNotification().extras.get(Notification.EXTRA_PICTURE)
and sbn.getNotification().getLargeIcon()
but I'm not able to get the picture/icon
I would really appreciate if someone can help me.
android android-notifications android-maps-v2
android android-notifications android-maps-v2
asked Nov 12 at 18:34
JBird
165
165
Notice how the notification doesn't align with how other notifications look - this is most likely a custom content view, and it has anImageView
as one of the components in the layout.
– Pawel
Nov 12 at 18:40
add a comment |
Notice how the notification doesn't align with how other notifications look - this is most likely a custom content view, and it has anImageView
as one of the components in the layout.
– Pawel
Nov 12 at 18:40
Notice how the notification doesn't align with how other notifications look - this is most likely a custom content view, and it has an
ImageView
as one of the components in the layout.– Pawel
Nov 12 at 18:40
Notice how the notification doesn't align with how other notifications look - this is most likely a custom content view, and it has an
ImageView
as one of the components in the layout.– Pawel
Nov 12 at 18:40
add a comment |
1 Answer
1
active
oldest
votes
up vote
0
down vote
You can't do that. It'd be a privacy issue if your app was allowed to see / view / read notification elements from other applications.
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
You can't do that. It'd be a privacy issue if your app was allowed to see / view / read notification elements from other applications.
add a comment |
up vote
0
down vote
You can't do that. It'd be a privacy issue if your app was allowed to see / view / read notification elements from other applications.
add a comment |
up vote
0
down vote
up vote
0
down vote
You can't do that. It'd be a privacy issue if your app was allowed to see / view / read notification elements from other applications.
You can't do that. It'd be a privacy issue if your app was allowed to see / view / read notification elements from other applications.
answered Nov 12 at 18:55
Jeffrey Blattman
16.3k564114
16.3k564114
add a comment |
add a comment |
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53268130%2fiterate-over-status-bar-notification-elements%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Notice how the notification doesn't align with how other notifications look - this is most likely a custom content view, and it has an
ImageView
as one of the components in the layout.– Pawel
Nov 12 at 18:40