Hello,
I have tried on Android 4.2.2 and 4.4.4 and I am no more able to display notifications. What I see is the icon of the application and a sentence from the system. When I click on the notification, I go to the application's details page (from the Applications in the Android Settings).
Dim n as Notification in the Process_Globals
In Main, Activity_Create
I have tried from a service in Service_Start
and I even instead tried from the same service in Service_Start
The notification's icon is in \Objects\res\drawable.
The Manifest's content is
Please do you see what I do wrong ? Many thanks
I have tried on Android 4.2.2 and 4.4.4 and I am no more able to display notifications. What I see is the icon of the application and a sentence from the system. When I click on the notification, I go to the application's details page (from the Applications in the Android Settings).
Dim n as Notification in the Process_Globals
In Main, Activity_Create
B4X:
n.Initialize
n.Icon = "notification"
n.Light = False
n.Sound = False
n.Vibrate = False
n.Number=1
n.AutoCancel = True
n.OnGoingEvent = False
n.Insistent = False
n.SetInfo("Title","Description",Me)
I have tried from a service in Service_Start
B4X:
Service.StartForeground(1, Main.n)
and I even instead tried from the same service in Service_Start
B4X:
Main.n.Notify(1)
The notification's icon is in \Objects\res\drawable.
The Manifest's content is
AddManifestText(
<uses-sdk android:minSdkVersion="17" android:targetSdkVersion="21"/>
<supports-screens android:largeScreens="true"
android:normalScreens="true"
android:smallScreens="true"
android:anyDensity="true"/>)
SetApplicationAttribute(android:theme, "@android:style/Theme.Holo.Light")
Please do you see what I do wrong ? Many thanks