Ping might require ROOT privileges, that's why only works in debug mode.
Debug mode doesn't add ROOT privileges. It does however add the INTERNET permission. You should manually add it with the manifest editor:Ping might require ROOT privileges, that's why only works in debug mode.
AddPermission(android.permission.INTERNET)
Debug mode doesn't add ROOT privileges. It does however add the INTERNET permission. You should manually add it with the manifest editor:
B4X:AddPermission(android.permission.INTERNET)
You should use HttpUtils2 to "download" the Url. If it is successful then the website is up.
You can search for it, type httputils2 up in the SEARCH box and you'll find it.
Sub Check_Click
MainUrl= "http://www." & LinkSito.Text
PreviewWeb.LoadUrl(MainUrl)
Dim job As HttpJob
job.Initialize("Main page", Me)
job.Download(MainUrl)
End Sub
We came out crazy, but in the end I made it!
Any chance you could post your completed program? THANKS! :sign0060:
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?