android - Force Wi-Fi network for 3rd party apps -
i have android app , server available through wi-fi.
operations (e.g. video streaming server) app uses third-party apps sharing url of file.
starting android l device can connected both wi-fi , cellular simultaneously, breaks app since server doesn't have internet , cellular network getting preferred android (since has internet), url cannot resolved. fixed binding app wi-fi bindprocesstonetwork(). when app shares url 3'rd-party app, url still cannot resolved since 3'rd-party app not bind wi-fi.
is there way let 3'rd party app use wi-fi instead of cellular while opening url app provided?
here have explanation on how force type of network specific address:
how use 3g connection in android application instead of wi-fi?
if know url of 3rd party services can try it. remember code relies on network should run off ui thread. code uses deprecated methods.

Comments
Post a Comment