Hello,
wait for is not working properly when I am putting the code in Activity_create()
The below is the code at Activity_Create():
Please note that I am working in Debug Mode and after executing Wait for the control directly moves to Activity_resume().
Remaining Codes after Wait For is NOT executing in Activity_create()
Please advice.
Thanks
wait for is not working properly when I am putting the code in Activity_create()
The below is the code at Activity_Create():
B4X:
Dim jobPayKey As HttpJob
jobPayKey.Initialize("",Me)
jobPayKey.Download("http://xxxxxxxxx/rzrPayKeys")
Wait For (jobPayKey) JobDone(jobPayKey As HttpJob)
If jobPayKey.Success Then
Dim JSON As JSONParser
JSON.Initialize(jobPayKey.GetString)
Dim Map1 As Map
Dim m As Map
Map1 = JSON.NextObject
Dim MenuItems As List
MenuItems = Map1.Get("payKey")
m = MenuItems.Get(0)
keyId=m.Get("key_id")
keySecret=m.Get("key_secret")
End If
Please note that I am working in Debug Mode and after executing Wait for the control directly moves to Activity_resume().
Remaining Codes after Wait For is NOT executing in Activity_create()
Please advice.
Thanks