Hi all!
Today I am faced with such an issue:
My app creates a notification if there is no action from user (like a screensaver).
This creates the notification:
The notification is created successfully.
As you can see:
By clicking this notification, the activity with the name "Protect" will be started and the activity is displayed successfully.
So far so good...
But, if I am working with another app which is using currently the software keyboard (in example: I am in Whatsapp and I am writing currently a message to a friend) and I click (in this scenario) my notification entry then my activity "Protect" is displayed on the smartphone screen - BUT WITH EMPTY SPACE (with the activiy BACKGROUND) at the same place where the software keyboard was in Whatsapp.
I cannot make a screenshot currently - because my app does not allow making screenshort (-> security).
Only the activity part above of the software keyboard is shown correctly.
I tried with IME to close the keyboard - but no effect!!
Therefore my question:
How I can close globally the software keyboard of my android smartphone in order to show my full activity (and not a part of it)?
Or is it possible to drive my app to redraw the full activity?
I need help here.
Thanks in advance.
Best regards
ARTsoft
Today I am faced with such an issue:
My app creates a notification if there is no action from user (like a screensaver).
This creates the notification:
B4X:
Dim n As Notification
Public Sub makeNotify(body As String)
n.Initialize
n.Sound = False
n.Insistent = False
n.Vibrate = False
n.Icon = "icon"
n.Light = False
n.OnGoingEvent = True
n.AutoCancel = True
n.SetInfo("MyApp", body, Protect)
n.Notify(19999)
End Sub
Public Sub cancelNotify()
If (n.IsInitialized) Then
n.Cancel(19999)
End If
End Sub
The notification is created successfully.
As you can see:
By clicking this notification, the activity with the name "Protect" will be started and the activity is displayed successfully.
So far so good...
But, if I am working with another app which is using currently the software keyboard (in example: I am in Whatsapp and I am writing currently a message to a friend) and I click (in this scenario) my notification entry then my activity "Protect" is displayed on the smartphone screen - BUT WITH EMPTY SPACE (with the activiy BACKGROUND) at the same place where the software keyboard was in Whatsapp.
I cannot make a screenshot currently - because my app does not allow making screenshort (-> security).
Only the activity part above of the software keyboard is shown correctly.
I tried with IME to close the keyboard - but no effect!!
Therefore my question:
How I can close globally the software keyboard of my android smartphone in order to show my full activity (and not a part of it)?
Or is it possible to drive my app to redraw the full activity?
I need help here.
Thanks in advance.
Best regards
ARTsoft