if you are using emulator to run your app for local server. mention the local ip
as 10.0.2.2
and have to give Internet permission into your app :
<uses-permission android:name="android.permission.INTERNET" />
More Related Contents:
- Android deprecated apache module (HttpClient, HttpResponse, etc.)
- How to add Apache HTTP API (legacy) as compile-time dependency to build.grade for Android M?
- Method not found using DigestUtils in Android
- Checking internet connection on android
- Android HTTP User Agent
- Android event for internet connectivity state change [duplicate]
- Android: Making Https Request
- android – how to prevent webview to load when no internet connection
- How to keep a XMPP connection stable on Android with (a)smack?
- Get signal strength of WIFI and Mobile Data
- How to check the HDMI device connection status in Android?
- When to close db connection on android? Every time after your operation finished or after your app exit
- RuntimeException: Unable to instantiate application
- Geocoder.getFromLocation throws IOException on Android emulator
- Difference between apk (.apk) and app bundle (.aab)
- Disconnect a bluetooth socket in Android
- AlarmManager not working in several devices
- Receiver not registered exception error?
- How to get screen size of device? [duplicate]
- importing jar libraries into android-studio
- Picasso Library, Android: Using Error Listener
- HttpClient on Android : NoHttpResponseException through UMTS/3G
- Android open pdf file
- Navigation Drawer with backword compatibility android
- SSL certificate is not trusted – on mobile only [closed]
- How to populate Android Room database table on first run?
- How to notify users about an Android app update?
- Error while merging dex Program type already present: android.support.v4.os.ResultReceiver$MyResultReceiver
- Find and replace Android studio
- Can’t toast on a thread that has not called Looper.prepare()