B4X:
Sub JobDone (Job As HttpJob)
Dim result As String
Log("JobName = " & Job.JobName & ", Success = " & Job.Success)
ProgressDialogHide
' Job.GetRequest.Timeout = 60000
If Job.Success = True Then
Select Job.JobName
Case "Login"
ToastMessageShow(Job.GetString,True)
result = Job.GetString
If result = "success" Then 'here i face the problem
StartActivity(Outlet)
Activity.Finish
End If
End Select
Else
Log("Error: " & Job.ErrorMessage)
ToastMessageShow("Error:" & Job.ErrorMessage,True)
End If
Job.Release
End Sub
In the above code i face the problem that in the line 'if result = "success" then', even though result variable got "success" value it is not entering inside if statement. Please anyone help me to solve this problem.