Android connection to localhost

前端 未结 9 504
囚心锁ツ
囚心锁ツ 2020-12-01 11:23

I\'m trying to connect my android application to a local host url thanks to wamp server but it doesn\'t work. My goal here, is to fetch json data and parse these data. For m

9条回答
  •  情歌与酒
    2020-12-01 11:48

    if you are using your phone instead of emulator and running services on localhost then in url instead of '10.0.2.2' use IP address of your PC.

提交回复
热议问题