php - Connect server database in Android (emulator) -
i seek connect server database android app (php + mysql).
when makehttprequest logcat shows "httphostconnectexception connection http //localhost refused"
i know have been asked several times , tried prepare seeing each response still not working.
important: 1. "" works in browser not in emulator. two.'ve tried http://jsonlint.com json object , correct.
thank attention!
protected string doinbackground(string... args) { list<namevaluepair> params = new arraylist<namevaluepair>(); // getting json string url jsonobject json = jparser.makehttprequest("http://10.0.2.2/test/get_all_users.php", "get", params); //...... }
have check net permission. if ok set here menifest file.
php android mysql apache
No comments:
Post a Comment