Questions tagged [hotspot]

A hotspot is a physical location where people may obtain Internet access, typically using Wi-Fi technology.

A hotspot is a physical location where people may obtain Internet access, typically using Wi-Fi technology, via a wireless local area network (WLAN) using a router connected to an internet service provider. The service can also be provided by a smartphone using its cellular data to connect to the isp.

346 questions
2
votes
1 answer

isReachable() returns false in Android

I have a situation when my phone is working as a hotspot and I need to detect all devices which connected to my phone and find their MAC addresses. I wrote something like this: public void getListOfConnectedDevice() { Thread thread = new…
2
votes
1 answer

How do I in an app get the BSSID of my device's hotspot access point on android

When I have an android device configured for and acting as a hotspot ( wifi access point) how can I get the current (possibly generated and unique for each activation of the hotspot) BSSID seen by other devices for the current active hotspot. Not…
peterk
  • 5,136
  • 6
  • 33
  • 47
2
votes
3 answers

What happens inside the JVM so that a method invocation in Java becomes slower when you call it somewhere else in your code?

The short code below isolates the problem. Basically I'm timing the method addToStorage. I start by executing it one million times and I'm able to get its time down to around 723 nanoseconds. Then I do a short pause (using a busy spinning method not…
LatencyFighter
  • 351
  • 2
  • 11
2
votes
1 answer

Turn on/off WiFi hotspot programmatically

I need help in creating a C# script that set a android WiFi in hotspot mode. Here is the code that I managed to create. public bool setAPEnabled(bool enabled) { using (AndroidJavaObject activity = new…
BackLogers
  • 23
  • 1
  • 3
2
votes
2 answers

Why JCMD throws "native memory tracking is not enabled" message even though NMT is enabled?

I am facing this weird problem. I want to track native memory usage of the JVM. I followed instructions provided in Oracle doc, added NMT enable flag and recycled Tomcat JVM. After that when I tried to see native memory usage using JCMD, I got…
suv3ndu
  • 221
  • 5
  • 12
2
votes
0 answers

Joining nougat hotspot

My app has 2 buttons, one to create a hotspot, another one to join a hotspot. The flow is : I create a hotspot on one of the devices and then try to join it with other device (through my app). The problem is that sometimes i can not join the…
Steven Smith
  • 111
  • 1
  • 2
  • 11
2
votes
1 answer

Is there a way to read/write tethering (wifi) on an android phone programmatically?

Is there any way to read/write Pre-defined default configure Mobile hotspot data such as Network name, security, password by programmatically. Thanks in advance
kgsharathkumar
  • 1,369
  • 1
  • 19
  • 36
2
votes
1 answer

Android socket connection between hotspot and client

I am making an app that checks for certain connections (looking for a list of SSIDs) and creates an hotspot for said connection if it doesn't find any. Basically it should act as a local area network. I am successful in creating the hotspot, and…
Maldus
  • 10,548
  • 4
  • 24
  • 36
2
votes
2 answers

Mikrotik Hotspot PHP API

i'm working with php api by Mikrotik, but i do not how control if the user is disconnected do not run the limit-uptime? this is my code $API->write("/ip/hotspot/user/add", false); $API->write("=name=".$usuario,…
Miguel Garcia
  • 35
  • 2
  • 8
1
vote
0 answers

How can I create an app like that in Flutter?

I want to use the hotspot to transfer files, images and everything else offline and through the hotspot, I searched a lot but I didn't find a package or an item about this, I also got help from JPT chat even though He did not have any information…
Sajjad
  • 15
  • 4
1
vote
0 answers

Turning on hotspot in android 12

Following the answer to this question I could turn on the hotspot on an android 8 device. But the same code wont turn on the hotspot in an android 12 device. Here is my MainActivity.java: package io.ionic.starter; import android.Manifest; import…
user6781
  • 25
  • 4
1
vote
0 answers

How to check status of Android hotspot using flutter

I'm building an app that requires a user to enable their hotspot. Is there any package to get the info of the hotspot of the device? if there's no package, how can I achieve it then? should I write android specific code (kotlin) for that? I have…
1
vote
0 answers

Is it possible to detect if the device has Hotspot enable?

I have to find if the device where my application run, has the Wi-Fi enable or if the device is in hotspot mode, else I want to display an error message. To detect if I am connected to Wi-Fi, I'm using @react-native-community/netinfo, but I can't…
1
vote
0 answers

How to get the remote device Ipaddress, host name etc for a local only hotspot in android

In Android 12, which API or methodology should we use, in order to get the IP address, hostname, MAC address of a remote device that is connected to our hotspot which is of local only hotspot type. Typically, for a tethered hotspot, we could get…
1
vote
1 answer

Is it possible to connect to own hotspot? (Android)

I created a WiFi-Hotspot with Android 10, and want to connect to it with the same phone. Is this possible with some "hacks"? I know, it's a weird question and you may ask why I need this. The reason is that my provider granted me mobile data usage,…
Karnimani
  • 23
  • 5