What is localhost?Url ="http://localhost/testvb4android"
Dim myurl As String
myurl = "http://www.travelhotelonline.com/testvb4android"
If HttpUtils.IsSuccess(myUrl) Then
Log(HttpUtils.GetString(myurl))
End If
LogCat connected to: emulator-5554
** Activity (main) Create, isFirst = true **
Starting Job: J1
** Activity (main) Resume **
** Service (httputilsservice) Create **
** Service (httputilsservice) Start **
http://www.travelhotelonline.com/testvb4android done
fromserver:HELLOWORLD
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><title>
</title></head>
<body>
<form name="form1" method="post" action="default.aspx" id="form1">
<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwULLTE2MTY2ODcyMjlkZOlhO/5ORzphxnlK0Id1xbBEAQ9k" />
<div>
</div>
</form>
</body>
</html>
** Service (httputilsservice) Destroy **
Log(HttpUtils.GetString(ServerUrl))
k = HttpUtils.GetString(ServerUrl)
log(k)
label1.text=k
Dim label1 as Label
Hi
thanks very much
is the Beginners Guide online?
I add the controls with the designer
1)I get a java.lang.Runtimeexception:
object should be first initialized(label).
did you forget to call activity
loadlayout? continue?
2)in the label.text I get not only the fromserverHELLOWORLD but also
the httpp design of the page
I suppose it is to me to extract, by programmation, just the fromserverHELLOWORLD which only I need
3) VERY WORRYING:
I have to send to the server orders of the internaut:
hotel dates of stay etc..
if ServerUrl ="http://www.travelhotelonline.com/testvb4android"
is the basic URL
the only manner to send orders is:
for exemple
http://www.travelhotelonline.com/testvb4android?hotel=xxxx|mar12|mar14|"
but it is refused at the runtime
how can I send orders to the server?
very sincerely
michel
Try this:2) why I get an error just for that?:
compiling code. Error
Error compiling program.
Error description: Syntax error.
Occurred on line: 77
Dim fin As Int = response.IndexOf("<!DOCTYPE")
Word: int
Dim fin As Int : fin = response.IndexOf("<!DOCTYPE")
I get the same error with
Dim myurl As String : ServerUrl+"?query=1holtelselect|1|"
word: string
sincerely
michel
Dim myurl As String : myurl = ServerUrl & "?query=1holtelselect|1|"
just a question:
I need a lot of subs
I have to open a module for stocking them
project>add new module>>
do I open code a service module? or a code module?
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?