Ok. Thanks for the info. Will try to implement it. Thanks, Perumal
On Oct 18, 8:23 pm, Kostya Vasilyev <[email protected]> wrote: > Perumal, > > Tethering and internal APIs aside, there is only one active network > connection. If the phone is currently connected to WiFi, then network > traffic from all applications goes through that. > > Don't know the answer to your MMS quesiton. > > -- Kostya > > 18.10.2010 15:31, perumal316 пишет: > > > > > Hi Kostya, > > > I meant if I am connected to wifi, how to make sure other apps > > requiring network access will only connect to the wifi I am connected > > to and do not use the 3G network? > > > My app will only ensure I am connected to the wifi but can it control > > the network system of the Android system? Meaning if I am going to > > send a MMS and am connected to my preferred wifi using my app, can my > > app prevent it from not switching to the 3G network? > > > Thanks and Regards, > > Perumal > > > On Oct 18, 7:05 pm, Kostya Vasilyev<[email protected]> wrote: > >> 18.10.2010 4:54, perumal316 пишет: > > >>> Hi Kostya, > >>> Yes, I am referring to WiFi as the particular network. But, > >>> " You can monitor WiFi state, and just not do any networking while > >>> it's not active..." > >> You can monitor WiFi state using Broadcast Actions defined here: > > >>http://developer.android.com/reference/android/net/wifi/WifiManager.html > > >> or here: > > >>http://developer.android.com/reference/android/net/ConnectivityManage... > > >>> -I don't understand how to do this. Through an app? You can monitor > >>> the WiFi state, but how to not do any networking? > >> Um, now it's my turn to not understand. > > >> If this is your own application, you can tell it what to do (and not > >> do), right? > > >> -- Kostya > > >>> Regards, > >>> Perumal > >>> On Oct 18, 3:16 am, Kostya Vasilyev<[email protected]> wrote: > >>>> If by "particular network" you mean WiFi vs. cellular, then yes. > >>>> You can monitor WiFi state, and just not do any networking while it's > >>>> not active... > >>>> Notifying the user that your app is doing this might be a good idea, too > >>>> - so he can take the phone in hand and run towards the nearest WiFi > >>>> hotspot. > >>>> -- Kostya > >>>> 17.10.2010 17:36, perumal316 пишет: > >>>>> I am just wondering. Is it possible to make all data connection to a > >>>>> particular network only? > >>>>> Meaning even if 3G will be available it will only connect to a > >>>>> particular network for all data related processing. > >>>>> Regards, > >>>>> Perumal > >>>>> On Oct 15, 9:34 pm, Jens<[email protected]> wrote: > >>>>>> Afaik - Android 2.1 has a bug related to hipri data, it *only* works > >>>>>> for Android 2.2 and later. That said, your probably better off asking > >>>>>> the user to turn of WiFi before using your app - or restrict it to sdk > >>>>>> level 8 and higher. > >>>>>> On 11 Okt, 17:38, Steven PERRAUDIN<[email protected]> wrote: > >>>>>>> On 31 août, 13:36, Jens<[email protected]> wrote:> > >>>>>>> With Android 2.2 you can route data over the 3G connection explicitly > >>>>>>>> while still using WiFi. The feature exists in Android 2.1 also but is > >>>>>>>> *broken* as the high-priority 3G data connection is torn down > >>>>>>>> incorrectly almost directly. > >>>>>>> How do you get 3G and WiFi connected at the same time ? > >>>>>>> So is this possible in Android 2.1 to route either to 3G or WiFi ? > >>>>>>> If both interfaces are connected to a separate network, a simple > >>>>>>> change of routing table would allow to choose the interface to send/ > >>>>>>> receive data no ? Or is there a simpler way to achieve this. > >>>> -- > >>>> Kostya Vasilyev -- WiFi Manager + pretty widget > >>>> --http://kmansoft.wordpress.com-Hidequoted text - > >>>> - Show quoted text - > >> -- > >> Kostya Vasilyev -- WiFi Manager + pretty widget > >> --http://kmansoft.wordpress.com-Hide quoted text - > > >> - Show quoted text - > > -- > Kostya Vasilyev -- WiFi Manager + pretty widget > --http://kmansoft.wordpress.com -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

