Funcionar seguro que funciona, te diria que revises el PHP a ver si es correcto. Cuando a mi me ocurre un error similar es porque me he olvidado de inicializar el objeto HttpClient con
hc.Initialize("hc") supongo que tambien tienes el codigo para los eventos de respuesta, en este caso serian.
Con esta información deberias poder depurar el codigo, sino pasame un ejemplo en un zip del problema e intento revisar el codigo. Animo
este es el codigo completo
Sub Process_Globals
Dim CRBD As Cursor
Dim hc As HttpClient
Dim req As HttpRequest
End Sub
Sub Globals
'
http://www.b4x.com/forum/additional...ates/22291-mysql-library-jdbc.html#post129399
Dim Button1 As Button
Dim ListView1 As ListView
Dim GPS1 As GPS
Dim L As List
Dim lblLon As Label
Dim lblLat As Label
Dim lblSpeed As Label
Dim lbl4 As Label
Dim lblSatellites As Label
End Sub
Sub Activity_Create(FirstTime As Boolean)
Activity.LoadLayout("principal")
If FirstTime Then
GPS1.Initialize("GPS")
hc.Initialize("hc")
End If
End Sub
Sub Activity_Resume
If GPS1.GPSEnabled = False Then
' ToastMessageShow("Please enable the GPS device.", True)
StartActivity(GPS1.LocationSettingsIntent) 'Will open the relevant settings screen.
Else
GPS1.Start(0, 0) 'Listen to GPS with no filters.
End If
End Sub
Sub Activity_Pause (UserClosed As Boolean)
GPS1.Stop
End Sub
Sub Button1_Click
ExecuteRemoteQuery("http://201.***.**.**:8080/GpsTedsacoma.php?id=" & "" & "&fecha="&"05/02/2013"&"&hora="&"1:00"&"&nombre="&"G3"&"&longitud=" &lblLon.Text&"&latitud="&lblLat.Text&"&velocidad="&lblSpeed.Text,1)
End Sub
Sub GPS_LocationChanged (Location1 As Location)
lblLat.Text = Location1.ConvertToMinutes(Location1.Latitude)
lblLon.Text = Location1.ConvertToMinutes(Location1.Longitude)
lblSpeed.Text = Location1.Speed
ExecuteRemoteQuery("http://201.***.**.**:8080/GpsTedsacoma.php?id=" & "" & "&fecha="&"05/02/2013"&"&hora="&"1:00"&"&nombre="&"G3"&"&longitud=" &lblLon.Text&"&latitud="&lblLat.Text&"&velocidad="&lblSpeed.Text,1)
End Sub
Sub GPS_UserEnabled (Enabled As Boolean)
ToastMessageShow("GPS device enabled = " & Enabled, True)
End Sub
Sub GPS_GpsStatus (Satellites As List)
lblSatellites.Text = "Satellites:" & CRLF
For i = 0 To Satellites.Size - 1
Dim Satellite As GPSSatellite
Satellite = Satellites.Get(i)
lblSatellites.Text = lblSatellites.Text & CRLF & Satellite.Prn & _
" " & Satellite.Snr & " " & Satellite.UsedInFix & " " & Satellite.Azimuth _
& " " & Satellite.Elevation
Next
End Sub
Sub ExecuteRemoteQuery(Query As String, TaskId As Int)
req.InitializePost2(Query, Query.GetBytes("UTF8"))
' Msgbox(Query,"")
hc.Execute(req, TaskId)
' ProgressDialogShow("Subiendo datos")
' ToastMessageShow(TaskId,True)
End Sub