Permission denied (connect failed) code example Example: socket exception permission denied <uses-permission android:name="android.permission.INTERNET"/>