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.
Jump to PostYou 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
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, learning, and sharing knowledge.
You're trying to visit a URL that doesn't currently exist on the web. Most likely, a member posted a link a long time ago to a web page that has since been removed. It's also possible that there was a typo when posting the URL. We redirect you to this notice instead of stripping out the link to preserve the integrity of the post.