B4A Library Custom Notification Library: Barx

Mrjoey

Active Member
Licensed User
Longtime User
hey , quick question , when calling setimage , the freezes a bit , is that normal?
 

dieterp

Active Member
Licensed User
Longtime User
With regards to the CustomSound functionality,when I directly copy a 'notification.ogg' file to the 'Notifications' folder on my device, it works fine when I use the code Notification2.CustomSound = "file:///sdcard/notifications/notification.ogg"

However, when I copy the 'notification.ogg' file to the File.DirDefaultExternal folder, I cannot seem to play it from that folder. I've tried several paths (using file:///) but i just can't seem to get it to play. Will it not work from the File.DirDefaultExternal folder?

Thanks in advance!
 

barx

Well-Known Member
Licensed User
Longtime User

I'll be honest, I have no idea. Maybe a permissions thing? I really don't know.

Please note. This lib has now been superceded by notification builder. It is much better.
 

dieterp

Active Member
Licensed User
Longtime User
Thanks barx

I'll go through the Notification Builder forum again and see if I can pick up if anyone had the same query. Will re-post there to see if anyone can assist.
 

Roberto P.

Well-Known Member
Licensed User
Longtime User
sorry, but as you turn off the sound?
thanks
 

barx

Well-Known Member
Licensed User
Longtime User

Roberto P.

Well-Known Member
Licensed User
Longtime User
ok thanks. I try it right away.
 

Roberto P.

Well-Known Member
Licensed User
Longtime User
can I change the background color of the notification?
thanks
 

barx

Well-Known Member
Licensed User
Longtime User
can I change the background color of the notification?
thanks
You can change the color by creating a custom layout. I'm not sure about changing the standard layout color, maybe you can by creating a custom theme for your app.
 

delozoya

Member
Licensed User
Longtime User
Hello. I have this code for progress download huge files:

B4X:
Sub dd_Progress(Progress As Long, Total As Long)
   
    ProgressBar1.Progress = Progress / Total * 100
    Log(NumberFormat(Progress / 1024000, 0, 0))
    progreso_Actual=NumberFormat(Progress / 1024000, 0, 0)
    progreso_total=(NumberFormat(Total /1024000 , 0, 0))
   
    Label1.Text = NumberFormat(Progress / 1024000, 0, 0) & "MB / " & _
        NumberFormat(Total /1024000 , 0, 0) & "MB"
        aux=Label1.Text
        aux_total=Total
End Sub


How use cn.setProgress for download huge file?
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…