Suchi
Suchi

Reputation: 10039

Android - how to check if the device is in the same wifi

I want to write a program that wants to restrict location updates when the device is in the same wifi network. How would I go about doing that? How do I check if the device is in the same wifi network as earlier?

Upvotes: 0

Views: 306

Answers (1)

Peter Knego
Peter Knego

Reputation: 80340

WifiManager.getConnectionInfo() will give you information about current Wifi network.

Upvotes: 1

Related Questions