1. You want that $100.00 in your pocket or an Amazon Fire TV don't you? Well here's the deal. With our new updated look we are in desperate need of an updated logo. The 'old' one has certainly served us well, but it's time. Find all the details here: bit.ly/1q0k6Wa
  2. DroidForums.net is currently undergoing a major software upgrade. If you are experiencing any problems logging in please: Contact Us

rooted... permission issues

Discussion in 'Android Hacks and Help' started by chris24300, Nov 5, 2010.

  1. chris24300
    Offline

    chris24300 New Member

    Joined:
    Jan 7, 2010
    Messages:
    24
    Likes Received:
    0
    Trophy Points:
    0
    Hi, I've rooted my D1 so I can use it as hot spot. I am trying to do a simple udp test and I'm getting permission denied... I don't understand and I have the permission in my manifest.

    Code:
    Log.d("UDP", "S: Connecting...");
                 InetAddress serverAddr = InetAddress.getByName(SERVERIP);
                 DatagramSocket socket = new DatagramSocket(PORT,serverAddr);
                 byte[] buf = new byte[17];
                 DatagramPacket packet = new DatagramPacket(buf, buf.length);
                 Log.d("UDP", "S: Receiving...");
                 socket.receive(packet);
                 Log.d("UDP", "S: Received: '" + new String(packet.getData()) + "'");
                 Log.d("UDP", "S: Done.");
    <user-permission android:name="android.permission.INTERNET" />
  2. chris24300
    Offline

    chris24300 New Member

    Joined:
    Jan 7, 2010
    Messages:
    24
    Likes Received:
    0
    Trophy Points:
    0
    err please delete this thread... i spelt it user not uses.
Search tags for this page

android datagram socket permissions

,

android datagramsocket permission deny

,

android permission udp

,

datagramsocket android permission