I'm seeing some inconsistant results with a very small test program. It's at the end of this posting.
I'm running the latest version (B4A 1.5, Dialog 2.3.0)... I've got an AT&T Atrix running Android 2.2.2.
When I run the program below (with or without debug enabled)... The InputDialog box appears for about 1-2 seconds and then it clears never giving me a chance to type anything in. Please note that I have the InputType set to Phone. If I comment out that statement (line 22) the code works a bit more as expected allowing me to input text. (when clicking on Accept).
When I run the exact same program on my Xoom (Android 3.1) the InputDialog box appears (and stays visible). (with the phone type input) and when you click on accept, the Phone keyboard goes away and is replaced with the text keyboard.
There is something going on here but I'm not sure what. I will also tell you that "sometimes", when I click on accept, the keyboard clears.
Also, to faithfully reproduce this issue, you need to uninstall it before each test.
I'm open to suggestions on this one.
Thanks,
Gary M
I'm running the latest version (B4A 1.5, Dialog 2.3.0)... I've got an AT&T Atrix running Android 2.2.2.
When I run the program below (with or without debug enabled)... The InputDialog box appears for about 1-2 seconds and then it clears never giving me a chance to type anything in. Please note that I have the InputType set to Phone. If I comment out that statement (line 22) the code works a bit more as expected allowing me to input text. (when clicking on Accept).
When I run the exact same program on my Xoom (Android 3.1) the InputDialog box appears (and stays visible). (with the phone type input) and when you click on accept, the Phone keyboard goes away and is replaced with the text keyboard.
There is something going on here but I'm not sure what. I will also tell you that "sometimes", when I click on accept, the keyboard clears.
Also, to faithfully reproduce this issue, you need to uninstall it before each test.
I'm open to suggestions on this one.
Thanks,
Gary M
B4X:
'Activity module
Sub Process_Globals
'These global variables will be declared once when the application starts.
'These variables can be accessed from all modules.
End Sub
Sub Globals
'These global variables will be redeclared each time the activity is created.
'These variables can only be accessed from this module.
Dim GetIP_Address As String
End Sub
Sub Activity_Create(FirstTime As Boolean)
Activity.LoadLayout("1")
GetIP_Address = "0.0.0.0"
Get_IPAddress
End Sub
Sub Activity_Resume
End Sub
Sub Activity_Pause (UserClosed As Boolean)
End Sub
Sub Get_IPAddress
Dim Id As InputDialog
Id.InputType = Id.INPUT_TYPE_Phone
Id.Input = ""
Id.Hint = "Enter IP Address"
Id.HintColor = Colors.Blue
ret = DialogResponse.CANCEL
ret = Id.Show("Input IP Address (IPv4 only)", "Site Info", "Accept", "Cancel", "", Null)
If ret = -1 Then
GetIP_Address = id.Input
End If
End Sub