Ok, I've found http://almondmendoza.com/2009/10/17/turn-off-turn-on-wifi-in-android-using-code-tutorial/ :)
On 19 Mar, 09:21, badzio <bad...@gmail.com> wrote: > Another question - how can I switch off wifi? Of course I mean from > source code :) > > On 18 Mar, 21:39, spachner <stefanpach...@googlemail.com> wrote: > > > Hi, > > > when Wifi is on, GSM (which means UMTS or what mobil network you are > > using) is off and vice versa. If GPRS or other transmission types are > > used is not determined by the protocol (HTTP or whatever) you use. > > > Bluetooth is never used by by HTTP since there is no IP used below. > > > regards > > > Stefan > > > On 18 Mrz., 14:10, badzio <bad...@gmail.com> wrote: > > > > Hi, > > > > in my application I need sometimes send data via http (using > > > HttpClient, HttpGet and HttpPost). Can I choose (from source code) > > > connection which is used? For example, I'd like to use only gprs, not > > > wifi, not bluetooth. Or only wifi, not gprs. > > > Thanks for replies :) -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.