CallSubDelayed(subirdat,"subee") don´t works

fanfalveto

Active Member
Licensed User
Longtime User
I do:

CallSubDelayed(subirdat,"subee")

from a service,calling an activity (subirdat):

Sub subee
ExecuteRemoteQuery("http://"&base&"/android.php?id=" & id & "&fecha="&fecha&"&hora="&horaa&"&nombre="&nombre&"&longitud=" &longitud&"&latitud="&latitud,1)'&",foto="&foto'
StopService(control)
End Sub
Sub Activity_Resume
End Sub

Sub ExecuteRemoteQuery(Query As String, TaskId As Int)
Dim req As HttpRequest
req.InitializePost2(Query, Query.GetBytes("UTF8"))
hc.Execute(req, TaskId)
End Sub

Sub hc_ResponseSuccess (Response As HttpResponse, TaskId As Int)
ToastMessageShow("OK",False)
StartActivity(idmovil)
Activity.Finish
End Sub

I do the same with an event from an activity to other activity and works fine,but that no.
Please,any track.
Thank you
 

fanfalveto

Active Member
Licensed User
Longtime User
This is a mini project,only two activities,one service.
There are a very small code.Enter button calls the service, when the timer finish then start callsubdelayed to activity "subirdat"
But the problem is the same,the data don´t upload to mysql database.
I put into the zip,the php script.
 
Upvote 0

fanfalveto

Active Member
Licensed User
Longtime User
Erel I apologize for all the time you've done to lose, really sorry.
It has been a fault of mine, an oversight, silly.
I realized suddenly. Initialize the variable was missing for HttpClient.
It works well.
I'm sorry. Henceforth before asking for help will review the code well and then go over it again.
Thank you very much and sorry :sign0013: :BangHead: :sign0148:
 
Upvote 0
Top