Questions tagged [android-wifi]

This tag is related to Wifi related questions on Android mobile devices

2111 questions
0
votes
2 answers

App that will communicate between devices connected on the same local network Wi-Fi

So there's a requirement for an app that will communicate between devices if and only if its connected to the same local network. E.G: Device A and Device B are connected to Wi-Fi network Z. The app will allow both the Devices to communicate between…
Zx5
  • 155
  • 1
  • 8
0
votes
1 answer

Turning on a Wifi Hotspot programmatically and getting a WiFi Error

I am using the following code from the previous post on StackOverflow regarding this issue, public static boolean configApState(Context context) { WifiManager wifimanager = (WifiManager)…
Abdul Rehman
  • 2,224
  • 25
  • 30
0
votes
1 answer

Enable-Disable Wifi hotspot and tethering for android API 6 and less using java code

I tried many codes,so no solution found to change the wifi hotspot status.can anyone give me the sample code to just turn wifi hotspot on and off?
Semo
  • 1
  • 3
0
votes
1 answer

Simulate/ mock 3g/4g data on android phone

Not sure if possible, but I want applications to think they are connected via 3g/4g data but really they are being fed that data through a wifi connection. I know this is possible, and easy, on an emulator but I need to do this on a physical device.…
ValenteFV
  • 13
  • 6
0
votes
3 answers

Android App that communicates with a Java Program on a PC

Where would I start if I want to create an Android App that communicates with a Java Program on a PC through WiFi. What I am actually trying to achieve is I wanna make a Wifi Doorbell System. Install the Android App on the phone, Install the Java…
SleepNot
  • 2,982
  • 10
  • 43
  • 72
0
votes
1 answer

WifiAwareManager returns null

I'm trying to create an application that uses Wifi Aware but my WifiAwareManager returns null. How can I properly initialize the class so that it does not return null? What is the cause of this behavior? I'm quite sure that Pixel 2 XL does support…
0
votes
1 answer

Is BroadcastReceiver nescessary for a wifi scan?

This is my code below and it works fine, when i walk into a wifi enviroment im able to receive all the wifi BSSID and when i walk out, it returns null. however i saw examples that uses broadcast receiver, isit nescessary for wifi scanning? Just want…
Joshua Tan
  • 13
  • 5
0
votes
1 answer

How to detect if WiFi access point has just lost internet connection in Android

I was looking for a way to react a case when: I am connected to WiFi the access point has just lost internet connection (e.g the cable from router has been removed) In such cases, Android phones or notebooks are notified about that state and…
K.Os
  • 5,123
  • 8
  • 40
  • 95
0
votes
1 answer

Is there a way to check if my current wifi connected is different from previous connected wifi?

I want to detect if my wifi connection has changed(if it has changed to cellular or some other wifi but not the same) after I return to the app from background. Is there any way to do this? I tried the below code but it doesn't work, it keeps firing…
0
votes
0 answers

Is there a way to detect if my current wifi is different from the previously connected wifi?

I am trying to figure out changed wifi connection while in the background. I want to make sure if my current wifi is same as previously connected wifi no action is taken while if its a new wifi that gets configured then I want my code to trigger.…
0
votes
1 answer

Server(AndroidWebServer) not reachable from pc

I have created AndroidWebServer on my android phone. When I try to access 192.168.1.150:8000 (phone address) I have good response from the server. But when I try to access the same url from the pc (connected via WiFi on the same network) nothing…
Johns
  • 275
  • 1
  • 3
  • 5
0
votes
1 answer

how do i add network in wificonfig after API level26

i am facing a problem with wifi if the ap has same ssid and password i am getting BSSID as null or any from getconfiguredNetwork() method. so, i want to add network manually into wifi configuration but this add,remove and update will not work from…
Nirmal
  • 2,340
  • 21
  • 43
0
votes
1 answer

How to extract data from the html contents of a webpage using an Android application?

For simplicity lets say I have a single webpage with 10 lines of html code. I have a single h3 header tag like e.g. Mydata: 12345 The numeric data changes on the server side. I need to constantly monitor this number in the Android application over…
0
votes
1 answer

After wakeup wifi is not available in the first couple of seconds

My app is pinned and after waking up device all network requests that are made right away fail with a connection timeout. Waiting a couple of 100ms or seconds does the trick and everything works normally after that. I suppose there's a small window…
Ljudevit
  • 368
  • 3
  • 12
0
votes
1 answer

Check if wifi printer is busy&printing queue on android 4.2

I have a selphy cp1200 printer by cannon, its a wifi ipp printer, i wish to print to it using an app I created in android studio, my problem is no printing software I used was able to queue prints, which means I could only print one page and then…
1 2 3
99
100