• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

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

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:
DatagramPacket datagramPacket = new DatagramPacket(arrayBuff, strMessage.length(), ia, nPort);
try
{
    datagramSocket.send(datagramPacket);
 
Last edited:
Back
Top Bottom