Android Question input dialog and keyboard

DonManfred

Expert
Licensed User
Longtime User
have you tried to first open the keyboard with IME and THEN open the imputdialog?
 
Upvote 0

anaylor01

Well-Known Member
Licensed User
Longtime User
I am using Betterdialogs for some. I am getting this error when I try to load the keyboard before the dialog.
java.lang.IllegalArgumentException: method anywheresoftware.b4a.objects.IME.ShowKeyboard argument 1 has type android.view.View, got anywheresoftware.b4a.agraham.dialogs.InputDialog

Here is my code:
B4X:
Sub spnNameTeams_ItemClick (Position As Int, Value As Object)
    Dim anInputDialog As InputDialog
    IME.ShowKeyboard(anInputDialog)
    If aList.IsInitialized Then
        anInputDialog.Show("New Team Name:","Current Team Name:" & Value,"OK","Cancel","",Null)

        If anInputDialog.Response=DialogResponse.POSITIVE Then
            Dim newValue As String=anInputDialog.Input
            aList.RemoveAt(Position)
            aList.InsertAt(Position,newValue)
            spnNameTeams.Clear
            spnNameTeams.AddAll(aList)
        End If
 
Upvote 0
Top