Accessing localhost from Andriod Emulator
The access of localhost in a normal way can be a bit tricky in Andriod SDK.
The normal way of accessing the localhost is :-
http://localhost or http://127.0.0.1
but when it comes to Andriod, we can’t directly access the localhost. For that use the followling address:-
http://10.0.2.2 or http://10.0.2.2/project-folder