B4A Library Notification Builder Library.

Souta

New Member
Licensed User
Longtime User
I guess that i just found the problem but i don't realy get why it is like that. Currently i compile allways in debug mode, So the App generates the Notification. But i never closed the app correctly before installing an update. I closed the app by clicking the stop button on the debug window. This problem just causes when the Notification is still up and then compile again for the update.
 

dsirio75

Member
Licensed User
Longtime User
When i click an action, status bar stays on and don't collapse, how can i collapse status bar? I need to show share intent but it stays behind status bar after my action click... Thanks
 

barx

Well-Known Member
Licensed User
Longtime User
that's the action when calling a service. try calling an activity,
I think this should close the status bar. the bar staying open when calling a service is ideal for things like media controls were you don't want to have to slide down to keep skipping tracks.
 

dsirio75

Member
Licensed User
Longtime User
I have a strange issue i can't understand:
1) first action button gives me always "no extras", second and third are correct...
2) if i change actions order i see labels changed but tags are always old
Is there some cache to delete?
 
Last edited:

dsirio75

Member
Licensed User
Longtime User
I have really great problems with this library, can i have a working sample project? It shows old tags and never shows notification_action_tags, my starting intents are different from what i add to notificationbuildr!

Can i have right android-support-v4.jar? Maybe is this the problem?

Thanks
 

dsirio75

Member
Licensed User
Longtime User
This is my example, every action button i press i have only notification_tag in the startingIntent. I don't know this is a "rom" bug or lib bug.
I'm currently running CM10.
 

Attachments

  • TestNotif.zip
    15.1 KB · Views: 375

shashkiranr

Active Member
Licensed User
Longtime User
Hi barx,

Thank you for an amazing Library.

I was wondering if it is possible to use this notification in Service.Foreground

Since this is a NotificationBuilder and not of Notification type. I am getting Type mismatch during compilation.

If we can use it in Service.Foreground kindly let me know how.

Regards,
SK
 

barx

Well-Known Member
Licensed User
Longtime User
This is my example, every action button i press i have only notification_tag in the startingIntent. I don't know this is a "rom" bug or lib bug.
I'm currently running CM10.

I have downloaded your file and will take a look at it later today.
 

barx

Well-Known Member
Licensed User
Longtime User

I will look into this, never really used a foreground service, so I will need to create a small test project to see how they work.

Thanks
 

shashkiranr

Active Member
Licensed User
Longtime User
I will look into this, never really used a foreground service, so I will need to create a small test project to see how they work.

Thank you i will be waiting for your reply.
 

barx

Well-Known Member
Licensed User
Longtime User
I have downloaded your file and will take a look at it later today.

OK, I seem to be getting the same results from your example, And as of yet have no idea why. I also notice, if you mess around, tapping other actions, then close notification, then launch it again, it tends to correct itself from there on. very strange
 

barx

Well-Known Member
Licensed User
Longtime User
This is my example, every action button i press i have only notification_tag in the startingIntent. I don't know this is a "rom" bug or lib bug.
I'm currently running CM10.

I think I have solved this, I'll do a little more testing later and update.
 

barx

Well-Known Member
Licensed User
Longtime User
OK, if both of you can test this update to see if your issues are fixed. I have done some testing on your issue @dsirio75.

@shashkiranr try this update and use

B4X:
NotificationBuilder1.GetNotification

where you would normally pass the notification.

Please report back your findings and if all is ok I will update the OP

Thank You
 

shashkiranr

Active Member
Licensed User
Longtime User
Hi Barx,

I was unable to find "GetNotification" method in the library attached.

Regards,
SK
 

barx

Well-Known Member
Licensed User
Longtime User
OK, Try this one, I re built the zip.
 

shashkiranr

Active Member
Licensed User
Longtime User
it is working have not tested with images but a simple notification with ticker,chrono and action2 methods. super
 

shashkiranr

Active Member
Licensed User
Longtime User
Hi Barx,

I have one more question. I need to add an ongoing notification containing two images (or labels) side by side next to the icon. How do i do this ?

Regards,
SK
 

barx

Well-Known Member
Licensed User
Longtime User
Hi Barx,

I have one more question. I need to add an ongoing notification containing two images (or labels) side by side next to the icon. How do i do this ?

Regards,
SK

I haven't looked at implementing custom layouts yet, there were a few issues / bugs in the old custom Notification library due to the android system.

I will look at it at some point, but I cannot guarantee when it will be, sorry.
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…