Android Question Draw on top of other apps + Keyboard in a textbox

Myr0n

Active Member
Licensed User
Someone could show me how to open a keyboard when I click on a textbox that is showing in a overlay window?

I tried
textbox.RequestFocus
in the event_EnterPressed and nothing
and does not work.

I am using Overlay Window example from @Informatix
I just add a textbox in it but the textbox does not get the focus to pop up the keyboard.
 

Semen Matusovskiy

Well-Known Member
Licensed User
It's not possible to download this example, so I have no idea about Informatix's code.
But I did somehow an overflow window and there are reasons to expect that this window is created inside a service.
If so, it's not difficult to understand why keyboard is not shown. For Android is active an activity, which belongs to another app.

I see relatively simple workaround.
Overflow windows receive touch / click events. So it's possible to detect that a user clicked an EditText and to execute following actions:
1) create and start transparent activity with "new" EditText (the text from EditText inside overflow window)
2) hide temporary your overflow window.

When user willl finish input in activity:
1) show overflow window again
2) correct a text in "old" Editext
3) finish an activity.
 

Semen Matusovskiy

Well-Known Member
Licensed User
Don, you are right, it's possible to download all (I tried to download separate item).
I quickly looked samples and found expected : OW As OverlayWindow is initialized inside service (for example, SvcOverlayLogger.bas).
 

Myr0n

Active Member
Licensed User
Thank you
 
Top