Hi, I am still newbie in android and i need some help...How can i pass parameter or data to my localserver...
example i want to pass username and password to my php script...
Thank you in advance.
Hi, I am still newbie in android and i need some help...How can i pass parameter or data to my localserver...
example i want to pass username and password to my php script...
Thank you in advance.
You can't communicate with localhost as Android is unable to resolve it. If you can get your server on proper internet recognised IP then you HttpClient provided by Android SDK or any of the http libraries
if you're using an emulator...use 10.0.2.2 to connect to your localhost in your computer
Ahh yeah, I forgot about internat IP matching of emulator. Professional defermation :P there is no point having localhost if you have team working on project. Anyway you can read more about it here Using the Emulator - Emulator Networking
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.