java - Connecting an android app to my local server -


i new in android , got tutorial on how use , sqllite.

the problem:

i have mysql server on local pc , using android studio develop android application. application have listing of pharmacies in database, , pharmacies in server database.

how can connect mysql android local pc , pharmacies' details database?

i created java class pharmacies in application , http request function list database , return json object, couldn't connect local database. should put connection string ip of pc?

can provide tutorial me? couldn't find replica of problem on internet.

try this!!!

localhost/yournamefile/..... 

or see tutorial

http://www.androidhive.info/2012/05/how-to-connect-android-with-php-mysql/

hope. !!!!


Comments

Popular posts from this blog

ios - RestKit 0.20 — CoreData: error: Failed to call designated initializer on NSManagedObject class (again) -

java - Digest auth with Spring Security using javaconfig -

laravel - PDOException in Connector.php line 55: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES) -