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
:sign0013: for don´t post correct.
CallSubDelayed is into a service.
When timer into service run i want send data to mysql database.
I try do that into the service but don´t works,i try making a class,and now making another activity.
Thanks
 
Upvote 0

fanfalveto

Active Member
Licensed User
Longtime User
I am sorry for the inconvenience, I'm new and perhaps is something i not see.
The problem is service "control" calling activity "subirdat".
In the activity "idmovil" when click in ImageView1 open acitivity "fotos" and in camera1_picturetaken send the data ok.
Thank tou very much
 
Upvote 0

fanfalveto

Active Member
Licensed User
Longtime User
yes i´m sure because in the "subirdat" activity, into "sub executeremotequery" i put "Msgbox(Query,"")" and "ProgressDialogShow("Subiendo datos")",and this runs but don´t continue.
And the same runs in other avtivity,but don´t here
 
Upvote 0

fanfalveto

Active Member
Licensed User
Longtime User
Sorry i don´t understand.
The phone is conected to same network with my pc, and call an php file,this runs in activity "fotos" but not here.
 
Upvote 0

fanfalveto

Active Member
Licensed User
Longtime User
when run the project after wait the time shows "ProgressDialogShow("Subiendo datos")" and don´t do anything,don´t upload the data and don´t continue with the program,only wait here
 
Upvote 0

fanfalveto

Active Member
Licensed User
Longtime User
yes in "sub cancelvibrate2",arrive to this line when timer in service "control" is finished and in activity "admin" checkbox4 is checked.
"cancelvibrate2" calls CallSubDelayed(subirdat,"subee"),and then stops in "ProgressDialogShow("Subiendo datos")" .
The data don´t upload and the program wait here.
thank you very much for your patience
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
What should I do in this screen?
SS-2012-10-11_16.29.28.png
 
Upvote 0

fanfalveto

Active Member
Licensed User
Longtime User
You can press menu and put program in english.
In administrador check "modo invisible" or "invisibly" in english
Then press enter as user,wait for timer is finished (25 seconds),then the program calls cancelvibrate2,and CallSubDelayed(subirdat,"subee")
all the passwords should be blank
 
Upvote 0
Top