The system already does this, except since 2.3 the default
out-of-the-box setting is to not switch off WiFi when the device goes
to sleep (I assume it's because the hw can be put into some sort of
low-power mode).

This can be changed in system settings -> wireless -> WiFi -> Menu ->
Advanced -> "Keep WiFi on during sleep" -> "Only when plugged in" or
"Never".

-- K

2013/1/9 TreKing <treking...@gmail.com>:
> On Tue, Jan 8, 2013 at 1:16 AM, kmr <kchinnu...@gmail.com> wrote:
>>
>> can any one help me how to turnoff wifi when device goes to sleep mode or
>> ideal mode.
>
>
> I don't know what "ideal" mode is, but I thought the wifi is turned off when
> the device sleeps ... ?
>
>>
>> i have no idea about android frame work ....from where i have to start and
>> where i have to modify the code in android source.
>> i wanted to know the complete flow from android frame work to driver level
>
>
> Go to the main Android Developer site and do some research.
>
> -------------------------------------------------------------------------------------------------
> TreKing - Chicago transit tracking app for Android-powered devices
>
> --
> 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

-- 
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

Reply via email to