Local Only Hotspot
You can use a Local Only Hotspot to enable applications on devices connected to
the Wi-Fi hotspot to communicate with each other. The network created by this
method will not have Internet access. Each application can make a single request
for the hotspot, but multiple applications can request the hotspot at the same
time. When multiple applications have successfully registered concurrently, they
share the underlying hotspot.
LocalOnlyHotspotCallback.onStarted(LocalOnlyHotspotReservation)
is called when the hotspot is ready for use.
For more details on using Local Only Hotspots, see
startLocalOnlyHotspot()
.
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2021-10-27 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"Missing the information I need"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"Too complicated / too many steps"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"Out of date"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"Samples / code issue"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]