The access of localhost in normal way can be 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