olleb3 / csipsimple

Automatically exported from code.google.com/p/csipsimple
0 stars 0 forks source link

Disable Lock Wifi when connected on 3G #198

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I am using 12-28 with HTC Hero with VillainRom12 (android 2.1). Lock wifi seems 
to drain the battery faster when connected on 3G and wifi is not used. This is 
just a gut feeling and I want to make sure that your code recognizes that wifi 
lock can be disabled when sip connects on 3G.

Original issue reported on code.google.com by dcitele...@gmail.com on 6 Sep 2010 at 4:50

GoogleCodeExporter commented 9 years ago
Indeed, I though that wifi lock has no effect when connected in 3G. That's 
still not clear in android sdk documentation. They talk about the fact it 
prevents -as far as possible- to release an active wifi connection when there 
is an existing one and the phone is idle. But nothing about the fact it keeps 
scanning intensively when GSM data is used.

However, checking whether wifi is active before acquiring the wifi lock is 
painless for me. So I'll do this extra check.

Original comment by r3gis...@gmail.com on 6 Sep 2010 at 5:36

GoogleCodeExporter commented 9 years ago
Oh, just re-reading my code on the subject. Check is already done (indirectly 
but that's done).
So wifi should not be locked when you are in 3G. At least, surely in next 
release since I restart everything (did to fix another issue) when connection 
type is changed. For now not so clear since it ~could~ be not released. 
So wait for next build and say me if it's better.

Original comment by r3gis...@gmail.com on 6 Sep 2010 at 5:39

GoogleCodeExporter commented 9 years ago
Build -12-29 done. (available on download section)
So should be OK regarding wifi lock.

Original comment by r3gis...@gmail.com on 6 Sep 2010 at 8:36