You can get the key/values from the map (it's the same as "Action" =key and "CheckRegister" = value) with
B4X:
For c = 0 To MyMap.Size - 1
Dim key, value As String
key = MyMap.GetKeyAt(c)
value = MyMap.GetValueAt(c)
Next
Better: Send that mapwhich is an array
B4X:
Dim MyMap as Map
MyMap.Initialize
MyMap.put("Action", "CheckRegister")
MyMap.put("Imei", imei)
MyMap.put("Maill", RegMail.Text)
Dim JSONGenerator As JSONGenerator
JSONGenerator.Initialize2(MyMap)
Dim JSONstring As String
JSONstring = JSONGenerator.ToString
MyLog(JSONstring)
Dim Register As HttpJob
Register.Initialize("Register", Me)
Register.PostString("http://www.xxxx.yyy/register/register.php",JSONstring)
You can get the key/values from the map (it's the same as "Action" =key and "CheckRegister" = value) with
B4X:
For c = 0 To MyMap.Size - 1
Dim key, value As String
key = MyMap.GetKeyAt(c)
value = MyMap.GetValueAt(c)
Next
Better: Send that mapwhich is an array
B4X:
Dim MyMap as Map
MyMap.Initialize
MyMap.put("Action", "CheckRegister")
MyMap.put("Imei", imei)
MyMap.put("Maill", RegMail.Text)
Dim JSONGenerator As JSONGenerator
JSONGenerator.Initialize2(MyMap)
Dim JSONstring As String
JSONstring = JSONGenerator.ToString
MyLog(JSONstring)
Dim Register As HttpJob
Register.Initialize("Register", Me)
Register.PostString("http://www.xxxx.yyy/register/register.php",JSONstring)