tags:

views:

596

answers:

2

Hi to All, I have to connect to a webserver from android and i have to access a webservice and a webpage from the webserver.Anybody can help me.Please give step by step process with some code snippets because i am new to android and i dont know anything in connecting to a webserver.

Regards Rajapandian

A: 

You haven't given very much info (what kind of web page, XML/JSON/HTML/etc. ?). But the basic principles of regular Java apply. Using URL and InputStream:

URL url = new URL(...);
InputStream is = url.openStream();

And from there it depends what kind of data you're dealing with.

Matthew Flaschen
I have to access a ASP web page and a web service
Rajapandian
What is the output format of the web page? XML/JSON/HTML/...?
Matthew Flaschen
+1  A: 
Josef