DBDigital / nookapps

Automatically exported from code.google.com/p/nookapps Please note I am not a developer. I only created this to prevent the code from being lost with the shutdown of GoogleCode. If you wish to work on this, contact me and I will add you. :)
0 stars 0 forks source link

Trook rev68 wifi bugs on 1.4 firmware #39

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Use the latest Trook rev:68 on rooted firmware 1.4
2. Try to access an online feed over wifi.

What is the expected output? What do you see instead?
Instead of downloading the feed without error, it reports "Unable to acquire 
reference on network lock."  On subsequent tries, the feed will eventually 
download.  However, when exiting Trook, it never releases the reference to the 
wifilock, which results in wifi staying on until the user manually turns it off 
(and massive battery drain if unnoticed).

Original issue reported on code.google.com by jmc...@gmail.com on 4 Jul 2010 at 4:13

GoogleCodeExporter commented 8 years ago
I have not noticed the above complaint, but I have noticed that when I open 
Trook, it closes the Wifi immediately which is annoying as well. If the Wifi 
happens to be on, it makes sense to leave it on in case the user plans to grab 
a feed of something like that right away. I've "fixed" this adding 
"acquireAndWaitForWifi();" to the "onCreate()" method of the Trook class. I 
don't think this is necessarily the best way to do it (I'm just not familiar 
enough with this system yet), but it works for me and my irritation level is 
down quite a bit since I made the change.

Original comment by craftycoder on 12 Jul 2010 at 2:42

GoogleCodeExporter commented 8 years ago
I second both of jmcode's observations.  Whether or not the network lock 
acquisition reference error is related to the fact that Wi-Fi does not get 
disabled, this I don't know, but for me it consistently does stay on once I 
have accessed the network using Trook.  This is with a Nook Wi-Fi.

A (somewhat tedious) workaround is to manually stop Trook when done accessing 
the network, after which Wi-Fi will turn itself off.

Original comment by mgoetze2...@gmail.com on 15 Jul 2010 at 11:18