I have a pretty straightforward question: Is it possible to know whether or not an active wifi connection in Android is coming from a 3G hotspot?
Context: I have a tablet without 3G, which is connected to a 3G wifi hotspot from a phone (this can be either iPhone or an Android phone). In my application, I do want to use this tethered connection to make small web service request, but some functionality within the application (like uploading photo's and such: data intensive things) I want to restrict to non-3G tethered connections.
In some other post on SO, I saw that ip addresses from Android hotspots are always 192.168.43.x
; and this seems to be the case. But isn't there some generic way to find out whether or not a wifi connection is tethered from a phone?
I tried to Google the answer, but the combination of Android check wifi 3g hotspot programmatically
still only result in things like How to set up a wifi hotspot with your phone
, and Android turn On/Off WiFi HotSpot programmatically
, so that didn't help much.