问题描述
如果应用程序网络 setProcessDefaultNetwork设定是java水平,如果在较低水平(C / navtive)任何请求会在网络设置?
感谢
尼茨
根据我的测试,如果setProcessDefaultNetwork(dataNetwork)设定在JAVA平台层面,C和Java级别的传输请求将一直走下去dataNetwork.Even当WiFi是上
在应用过程中需要相同的。
修改19-10-2015:
If app process network setProcessDefaultNetwork set at java level, if any request at low level(C/navtive) will go over the the Network set?
Thanks
Nitz
As per my testing if setProcessDefaultNetwork(dataNetwork) set at java Platform level,the C and java level transport request will always go on dataNetwork.Even when wifi is on.
The app process needs to same.
"process-wide via setProcessDefaultNetwork(Network)"
Edit 19-10-2015 :setProcessDefaultNetwork is now deprecated and bindProcessToNetwork to be used
这篇关于应用程序的网络,在Android L移动setProcessDefaultNetwork / bindProcessToNetwork Android的API的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!