B4A Library Notification Builder Library.

barx

Well-Known Member
Licensed User
Longtime User
Can you post a sample code?
As I have already stated. Look at the demo app. Have you tried the demo app? In the app you select the options you would like in a notification. press the button at the bottom of the screen and it shows you what code is needed to create that notification. I am not going to write out examples here when I spent days writing an app that doe it all for you. Sorry
 

Jerez

Active Member
Licensed User
Longtime User

Hi @barx: Instead a sound notificacion, can i use a TTS message? thanks!
 

barx

Well-Known Member
Licensed User
Longtime User

imgsimonebiliato

Well-Known Member
Licensed User
Longtime User
Hello,
I've still this error log:

B4X:
java.lang.NoClassDefFoundError: Failed resolution of: Landroid/support/v4/app/NotificationManagerCompat;

I update the android-support-v4.jar file from the folder: android-sdk\extras\android\support\v7\appcompat\libs
but I've got still the problem.

Some help please?
 

MarcoRome

Expert
Licensed User
Longtime User

Can you attachment all error log
 

imgsimonebiliato

Well-Known Member
Licensed User
Longtime User
Can you attachment all error log

Here it is:

B4X:
Device name: cell_0607970a
java.lang.NoClassDefFoundError: Failed resolution of: Landroid/support/v4/view/ViewPager;
    at anywheresoftware.b4a.objects.StdActionBar$StdViewPager.Initialize(StdActionBar.java:349)
    at it.simone.biliato.csifortitudovedelago.main._activity_create(main.java:325)
    at java.lang.reflect.Method.invoke(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:372)
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:174)
    at it.simone.biliato.csifortitudovedelago.main.afterFirstLayout(main.java:98)
    at it.simone.biliato.csifortitudovedelago.main.access$100(main.java:16)
    at it.simone.biliato.csifortitudovedelago.main$WaitForLayout.run(main.java:76)
    at android.os.Handler.handleCallback(Handler.java:739)
    at android.os.Handler.dispatchMessage(Handler.java:95)
    at android.os.Looper.loop(Looper.java:145)
    at android.app.ActivityThread.main(ActivityThread.java:5832)
    at java.lang.reflect.Method.invoke(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:372)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1399)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1194)
Caused by: java.lang.ClassNotFoundException: Didn't find class "android.support.v4.view.ViewPager" on path: DexPathList[[zip file "/data/app/it.simone.biliato.csifortitudovedelago-2/base.apk"],nativeLibraryDirectories=[/vendor/lib, /system/lib]]
    at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:469)
    ... 16 more
    Suppressed: java.lang.ClassNotFoundException: android.support.v4.view.ViewPager
        at java.lang.Class.classForName(Native Method)
        at java.lang.BootClassLoader.findClass(ClassLoader.java:781)
        at java.lang.BootClassLoader.loadClass(ClassLoader.java:841)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:504)
        ... 17 more
    Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack available
 

barx

Well-Known Member
Licensed User
Longtime User

That error seems to relate to ViewPager??
 

chrjak

Active Member
Licensed User
Longtime User
Well done!
Is there a way to remove one action or to replace it by another please?
 

androh

Member
Licensed User
Longtime User
I want to hide notification from lock screen.
So I used .setVisibility method with javaobject. But notification is still on lock screen.
How can I remove notification from lock screen?

Edit: Solution is here.
 
Last edited:

hookshy

Well-Known Member
Licensed User
Longtime User
is posible to expand the notification to read a big message ? I expect the notification to change from normal style to bigtext style on user swipe ....
Will the actions be availlable in this case ?
 

PoleStar

Member
Licensed User
Longtime User
hi
i using CustomLayout on normal Notification Height and works well...
how to set CustomLayout on ExpandedNotification ?
 

barx

Well-Known Member
Licensed User
Longtime User
hi
i using CustomLayout on normal Notification Height and works well...
how to set CustomLayout on ExpandedNotification ?
To be honest, it's been quite a while since I played with anything Android, I'm starting out again now. Check out the
B4X:
nb.BigCustomLayout
method
 

barx

Well-Known Member
Licensed User
Longtime User
Is possibile to use a app's icon as notification normal icon? (not small)
Load the app icon file into a bitmap and pass that to
B4X:
nb.LargeIcon
 

PoleStar

Member
Licensed User
Longtime User
To be honest, it's been quite a while since I played with anything Android, I'm starting out again now. Check out the
B4X:
nb.BigCustomLayout
method

thanks
but... , NotificationBuilder is dont have a BigCustomLayout method

B4X:
    Dim nb As NotificationBuilder
    nb.big

my NotificationBuilder Library is v 3.00
 

barx

Well-Known Member
Licensed User
Longtime User
ooooer, my local version is v3.03. looks like I never uploaded it. Wonder what else I changed..........

I will try figure it out a little later and upload.
 

PoleStar

Member
Licensed User
Longtime User
ooooer, my local version is v3.03. looks like I never uploaded it. Wonder what else I changed..........

I will try figure it out a little later and upload.
Thanks a lot
I'm waiting for your update...
 

barx

Well-Known Member
Licensed User
Longtime User
Thanks a lot
I'm waiting for your update...


See the attached file here. To be honest I have no idea what I added here. Possibly just the BigCustomLayout.

Thinking I should write down what I do when I do it, lol

I compiled this version in Nov 2014. Again, no idea why I never updated forum.

My Bad

Good luck, hope it works well
 

Attachments

  • NotificationBuilderLibFilesV303.zip
    21 KB · Views: 330

wes58

Active Member
Licensed User
Longtime User
Cookies are required to use this site. You must accept them to continue using the site. Learn more…