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.

Recommended Answers

All 3 Replies

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 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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.