Access or connect android app to localhost over Wi-Fi and it will give you a lot flexibility to develop, run and test the app. My scenario was that I had created an android app which had need to access my local web server (XAMPP) for faster testing and the application was running on an emulator as well as device.