With the GPS example, I could get the information only when I am outside. Won't it fetch the details indoor? The GPS app in my mobile shows the location even if I am inside. Isn't there any way to get my location indoor?
Dim HttpClient1 As OkHttpClient
Dim PostUrl As String
HttpClient1.Initialize("HttpClient1")
Dim request As OkHttpRequest
request.InitializeGet(PostUrl)
request.Timeout = 100000 'set timeout to 10 seconds
If HttpClient1.Execute(request, 1) = False Then Return 'Will be false if their is already a running task (with the same id).
ProgressDialogShow("Sending Email...")
Sub HttpClient1_ResponseSuccess (Response As OkHttpResponse, TaskId As Int)
Log("ResponseSuccess")
ProgressDialogHide
End Sub
Sub HttpClient1_ResponseError (Reason As String, StatusCode As Int, TaskId As Int)
Log(Reason)
Log(StatusCode)
ProgressDialogHide
Dim msg As String
msg = "Error connecting to server."
If Reason <> Null Then msg = msg & CRLF & Reason
ToastMessageShow (msg, True)
End Sub
instead ofHttpClient
, but i am getting exception:OkHttpClient
If HttpClient1.Execute(request, 1) = False Then
- javac 1.8.0_76-release
src\b4a\EnTrackBLE\actmonitor.java:405: error: cannot access ClientProtocolException
if (_httpclient1.Execute(processBA,_request,(int) (1))==anywheresoftware.b4a.keywords.Common.False) {
^
class file for org.apache.http.client.ClientProtocolException not found