} catch (IOException e) {
Log.e("YOUR_APP_LOG_TAG", "I got an error", e);
}
And check the LogCat for the output.
More Related Contents:
- Read logcat programmatically within application
- Meaning of Choreographer messages in Logcat [duplicate]
- Unexpected value from nativeGetEnabledTags: 0
- Restore LogCat window within Android Studio
- Disable LogCat Output COMPLETELY in release Android app?
- Filter output in logcat by tagname
- Logcat not displaying my log calls
- Android Studio – ADB Error – “…device unauthorized. Please check the confirmation dialog on your device.”
- android logcat logs chatty module line expire message
- Read logs from all apps on android from within an app for android 4.2+
- Logcat not showing errors from my Huawei P9 phone
- Google Maps Android API v2 – Interactive InfoWindow (like in original android google maps)
- Can I create an object of an Activity in other class?
- How to use “Share image using” sharing Intent to share images in android?
- Really simple TCP client
- DoubleTap in android [duplicate]
- PhoneGap Eclipse Issue – eglCodecCommon glUtilsParamSize: unknow param errors
- Programmatically connect to paired Bluetooth device
- Android NDK build, Method could not be resolved
- How do I pause frame animation using AnimationDrawable? [closed]
- Unable to add window — token null is not valid; is your activity running?
- move up text view only when virtual keyboard open on android
- Convert string into LocalDateTime
- What should be the color of the Ripple, colorPrimary or colorAccent? (Material Design)
- MediaPlayer setDataSource, better to use path or FileDescriptor?
- Home button listener
- How to keep a CountDownTimer running even if the app is closed?
- How to use TabHost.OnTabChangeListener in android?
- Get person details in new google sign in Play Services 8.3
- Getting exception : java.lang.NoClassDefFoundError: android.support.v7.app.AppCompatDelegateImplV14