Throwing Exception Although Right Ip Used
package com.example.androidapp; import java.net.InetSocketAddress; import java.util.Collection; import android.app.Activity; import android.os.Bundle; import android.view.Menu;
Solution 1:
Print the stack trace from the exception you're passed. Are you sure the exception does not stem from the resolution of the InetSocketAddress? Try it again with various other hostnames, like "localhost" and perhaps an IPv4 equivalent address.
Solution 2:
Have you tried adding Internet Permission in the manifest file, if not add
<uses-permissionandroid:name="android.permission.INTERNET" />
Post a Comment for "Throwing Exception Although Right Ip Used"