nickmao1985 / apndroid

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

The on/off status bar indicator and widget are not working correctly in v2.0 r10 with Locale (don't change status) #15

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
APNDroid 2.0 r10

1. Set a situation in Locale which disables 3G
2. Switch on the situation
3. Both the status bar indicator and the widget are still on, and they 
should be off.

Btw, I prefer the old way to switch on/off apndroid from the desktop, with 
the icon. I really dislike the widget switch in the desktop ;) It's really 
necessary a widget? It's not more battery consuming?What version of the 
product are you using? On what operating system?

Please provide any additional information below.

Original issue reported on code.google.com by sdepab...@gmail.com on 20 Oct 2009 at 10:56

GoogleCodeExporter commented 9 years ago
if get this issue right: internet state changes but widget and status bar did 
not
activated?

Original comment by zeldigas on 20 Oct 2009 at 8:22

GoogleCodeExporter commented 9 years ago
Exactly. It always happen when the Locale plugin changes the APNdroid status.

Original comment by sdepab...@gmail.com on 20 Oct 2009 at 8:34

GoogleCodeExporter commented 9 years ago
ok. i'll check and fix it in the next build.

Original comment by zeldigas on 20 Oct 2009 at 8:37

GoogleCodeExporter commented 9 years ago
@sdepablos thank for your bug report again! The issue realy reproduced when 
locale
switched apn to on status. I committed changes but they are not included in the 
build
r11. Wait next build please.

Original comment by zeldigas on 23 Oct 2009 at 5:02

GoogleCodeExporter commented 9 years ago
sorry, forgot revision link.
http://code.google.com/p/apndroid/source/detail?r=70edb0f1441e71e2d1b7ed93580c7f
17ed82cad5

Original comment by zeldigas on 23 Oct 2009 at 5:03

GoogleCodeExporter commented 9 years ago
"the issue reproduced when switched to *off* status", misprinted

Original comment by zeldigas on 23 Oct 2009 at 5:06

GoogleCodeExporter commented 9 years ago
Just installed r12 and still not working. Whenever Locale change the status, 
nor the 
status bar neither the widget reflect the change. 

Looking at revision 70edb0f144 diff, the only difference I see is that now 
you're 
checking if the change was successful before trying to change the status via 
SwitchingAndMessagingUtils.sendStatusMessage (so if the change was unsuccessful 
you 
don't change the status), but I think the problem is somewhere else. Maybe the 
code 
is not entering in the correct if statement, or maybe the sendStatusMessage is 
not 
working correctly (I don't know the insides of Android)

Original comment by sdepab...@gmail.com on 29 Oct 2009 at 9:18

GoogleCodeExporter commented 9 years ago
that's very strange behaviour. When you created an issue i realy found that 
bug, but
after this small change all works fine on my G1 (just made some tests, i'm not 
active
locale user).
Can you please write a step by step log of your actions. For example
1. Current apn state state is on (both mms and gprs)
2. open locale.
3. create new event
......
N. and now we have the bug.

P.S. i'll ask you once again: does the real switching happens (on-> off, off-> 
on),
or it seems that locale plugin completely broken?

Original comment by zeldigas on 29 Oct 2009 at 9:33

GoogleCodeExporter commented 9 years ago

Original comment by zeldigas on 29 Oct 2009 at 9:33

GoogleCodeExporter commented 9 years ago

Original comment by zeldigas on 29 Oct 2009 at 9:33

GoogleCodeExporter commented 9 years ago
1. Current apn state state is on
2. open Locale.
3. create new event to turn off APN state off for work from 8AM ~ 12 AM.
4. Save everything.

When the designated time comes, APN state is off, however, the widget and the
notification shows APN ON. 

Original comment by al1...@gmail.com on 2 Nov 2009 at 8:18

GoogleCodeExporter commented 9 years ago
@al1208 very strange things. i created event which fired 5 minutes after 
creation and
my phone successfully switched with widget and notification correct state 
(off). Can
you please send us a log after switch? You can do this using
http://l6n.org/android/sendlog.shtml app.

Original comment by zeldigas on 2 Nov 2009 at 8:34

GoogleCodeExporter commented 9 years ago
Hello, I am still not very familiar how to send you the log (Can't find the 
email
address anywhere), so I have attached my log for your reference.

Original comment by al1...@gmail.com on 3 Nov 2009 at 1:19

Attachments:

GoogleCodeExporter commented 9 years ago
I uploaded new build with enhanced logging (2.0-logged1), please try with that 
one and post log again. Thanks 
a lot!

Original comment by martin.adamek on 3 Nov 2009 at 10:22

GoogleCodeExporter commented 9 years ago
For me the logged version is finally working ok. Locale changes the settings to 
APN
OFF and both the widget and the notification also show APN OFF. The same when it
switches it ON.

Original comment by sdepab...@gmail.com on 29 Nov 2009 at 3:15

GoogleCodeExporter commented 9 years ago
It seems that Martin builded not the last revision that day.
Soon new not logged build will be made and you can use it instead of more slow 
logged
one.

Original comment by zeldigas on 29 Nov 2009 at 3:20