Click here to Skip to main content
15,905,867 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:

i am going to call web api from android it work when i use emulator of android studio but does not work when i use my mobile as an emulaotr


What I have tried:

i am going to call web api from android it work when i use emulator of android studio but does not work when i use my mobile as an emulaotr
Posted
Updated 25-Dec-16 0:49am
Comments
Richard MacCutchan 25-Dec-16 3:00am    
Sorry but we cannot see your code, so have no idea what is happening.

 
Share this answer
 
One guess is that your API is running on a local server that is only accessible within the machine. So when you access it from your devices, that are outside, you cannot consume it

Try accessing any external API, you may create a sample API, get a server hosting from any free provider to test that on a real device. Since it works on emulator, I will assume it is fine.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900