1. Download our Official Android App: Forums for Android!

Why is Wifi handling so difficult and convoluted under Android Studio?

Discussion in 'Android Development' started by Gregary Boyles, Oct 11, 2017.

  1. Gregary Boyles

    Thread Starter
    Rank:
    None
    Points:
    15
    Posts:
    30
    Joined:
    Oct 1, 2017

    Oct 1, 2017
    30
    0
    15
    LOOK is there are way to JUST get access to the main Android operating system wifi connection, inside my app, and bloody avoid all this complicated pain in the ar$e crap with network SSID and password handling?????

    You can do it in MIT app inventor so SURELY there is a way to do it for SIMPLE apps in Android studio

    Ultimately I want to do the following.

    How do I connect datagramPacket to the current system wifi network connection in the absolute SIMPLEST possible way without handling wifi network ssid and keys???

    If I retrieve the android device's local ip address inside my app then it is telling me that it is 127.0.0.1.
    And I am told that means my device is not connected to my home wifi network regardless of the fact I can access the internet outside my app.

    Code (Text):
    1.  
    2. DatagramPacket datagramPacket = new DatagramPacket(arrayBuff, strMessage.length(), ia, nPort);
    3. try
    4. {
    5.     datagramSocket.send(datagramPacket);
    6.  
    7.  
     

    Advertisement

    #1 Gregary Boyles, Oct 11, 2017
    Last edited: Oct 11, 2017

Share This Page

Loading...