Android Question No Notification shown at Sony xperia Z3C

berndm2

Member
Licensed User
Longtime User
Notifications of B4A programs are not displayed on my rooted Xperia Z3C with Android 6.0.1, while in other allplications for example: ACalendar; B4A Bridge, Tasker etc. the notifications are displayed without any problems. Notifications are not blocked in the settings. On my old Samsung S4 (Android 4.2.) there are no problems with it.
Which could be the cause. Who has an Idea.
 

berndm2

Member
Licensed User
Longtime User
I send the Notifications with Advanced Notification commands.
Sony's energy savings are turned off. I do not receive any error messages.
 
Upvote 0

berndm2

Member
Licensed User
Longtime User
I use the properties and methods of the AdvancedNotification Library in my program:

Sub Benachrichtigung

Dim Noti As AdvancedNotification

DateTime.TimeFormat = "kk' Uhr 'mm"

DateTime.DateFormat = "dd.MM.yy"

Noti.Initialize()

Noti.Icon="icon"

Noti.SetInfo("Information", "am " & DateTime.Date(DateTime.Now) & " um " & DateTime.Time(DateTime.Now), Ende)

Noti.TickerText="Info"

Noti.Sound = False

Noti.Vibrate = True

Noti.Notify(1)

End Sub

As I said, the routine works fine on my old Sony S4mini, but not on the Sony xperia Z3C, which does not display the notification. The notifications of other applications work perfectly on my sony xperia Z3C. What can be the cause?
 
Upvote 0

berndm2

Member
Licensed User
Longtime User
Thanks for the hint. I tried the NB6-example, but I get an error message while executing the program, which I can not solve.
Is there an NB6 library besides the NB6 class?
 

Attachments

  • Screenshot_20180809-121617.png
    Screenshot_20180809-121617.png
    69.7 KB · Views: 230
Upvote 0

berndm2

Member
Licensed User
Longtime User
I get no error messages in the logs but only during runtime.
The problem is probably that I have not yet installed the B4A 8 update.
Are notifications possible for older B4A versions?
 
Upvote 0

berndm2

Member
Licensed User
Longtime User
I have changed my program and now get the error message:
Method: getComponentClass not found.
Where I get this method?
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
I have changed my program and now get the error message:
Method: getComponentClass not found.
We cannot help you with such messages. You should post the full error message from the logs.

The problem is probably that I have not yet installed the B4A 8 update.
Are notifications possible for older B4A versions?
See the bold sentence in this tutorial: https://www.b4x.com/android/forum/threads/android-jar-targetsdkversion-minsdkversion.87610/#content
 
Upvote 0

berndm2

Member
Licensed User
Longtime User
Ok, I specify my request:
I'm trying to get a notification displayed on my Sony xperia Z3C with Android 6.0.1 with the class nb6 and get the enclosed error message during the runtime. This is obviously a missing method called in the CreateIntent method of the class nb6:
Code: (of then class nb6)
Target = common.RunMethod ("getComponentClass", Array (Null, Target, Receiver))
/Code
How can I fix the error? or where can I get the missing common.RunMethod?
 

Attachments

  • Screenshot_20180812-121025.png
    Screenshot_20180812-121025.png
    79.7 KB · Views: 224
Upvote 0

berndm2

Member
Licensed User
Longtime User
Ok, here is the error text:

An Error has ocurred in sub:
java.lang.RuntimeException:
Method: getComponentClass not
found in: anywheresoftware.b4a.keywords.Common
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
An Error has ocurred in sub:
java.lang.RuntimeException:
Method: getComponentClass not
found in: anywheresoftware.b4a.keywords.Common
You need to find the error message in the logs and post the full error message. As @DonManfred wrote you are probably using an older version. NB6 requires B4A v8+.
 
Upvote 0

berndm2

Member
Licensed User
Longtime User
I understand that I can not use the nb6 library with my older B4A version.
So I tested the notificationbuilder library and got the error message:


B4A version 4.30
Parsing code. 0.01
Compiling code. 0.18
Compiling layouts code. 0.01
Generating R file. 0.29
Compiling generated Java code. Error
Cannot find: C:\Program Files\Anywhere Software\Basic4android\libraries\com.android.support:support-v4.jar

A "com.android.support:support-v4.jar", however, is not possible in my opinion, because the colon in the file name violates the Windows convention for filenames and is therefore not accepted.
Is there a way to fix the error?
Otherwise, I will have to give up until the update of B4A first on Notification.
Thanks for your tips.
 
Upvote 0
Top