Android Question run Apache and PHP module in Android

Mas Afi

Member
Licensed User
i want to create an aplication with RAD for PHP and deploy it in Android.
What should I prepare to deploy it in Android?
 

ronell

Well-Known Member
Licensed User
Longtime User
okhttputils2 allows your app to send request to webservice then handle the response in Jobdone

B4X:
Dim job1 As HttpJob
    job1.Initialize("job1", Me)  
    job1.Download2("https://sample.net/yourphpscript.php", _
    Array As String("user_id",username,"password",password))

Sub JobDone (Job As HttpJob)

    ProgressDialogHide
    Log("JobName = " & Job.JobName & ", Success = " & Job.Success)
    If Job.Success = True Then
      
Select Job.JobName

      Case "job1"
                    Log(Job.GetString) '<--- servers response

End Select

    Else
     ToastMessageShow("Cant connect to server",False)

Job.Release

End Sub
 
Upvote 0
Top