android - Force to use wifi network -


i building application connects esp8266 not have internet access. program works on phone android version prior lollipop. lollipop , newer connects instead uses 3g / 4g network in place of wifi. because have no internet access. how can force android use wifi instead of mobile network? without using root. test code proposed in link did not work:force android use wifi network no internet

update: if turn off mobile data manually, program works perfectly. can not find way turn off mobile data.


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -