nickmao1985 / apndroid

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

Sometimes does not work #19

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Latest version installed (taken from Web)
2. Turn off connections. It works, no connections. Apn's are modified.
3. Turn on connections (by widget or by application icon, it's the same).
4. 3G connection does not work. No 3G icon or connection
5. Try to use 3G connection with applications (market, google maps, etc.).
No connection. Apn's are ok.
6. Plane mode on. Plane mode off. Pin.
7. 3G Connection is there. 3G works as expected.

6a. Reboot Magic
7a. 3G Connection is there. 3G works as expected.

The question is that this does not happens ever. Sometimes Apndroid
behaviour is perfect, as expected. You can switch on/off/on/off connections
multiple times and it works fine. But sometimes it does not work. It is a
pity if I have to turn on/off plane mode or reboot Magic after having used
apndroid.

What version of the product are you using? 
Latest from Web. But latest from market was the same for me. 

On what operating system?
Android 1.6 (donut) with Vodafone HTC Magic.
Magic is free.
I've root access

Please provide any additional information below.
My ISP is Movistar (spanish). 
But this has happened in the same way abroad with other ISP's. For example
in Belgium with B Mobistar. Of course, in that time, roaming was enabled,
and sometimes it worked as expected, but other times, after tur

Original issue reported on code.google.com by mmo.cue...@gmail.com on 2 Dec 2009 at 1:27

GoogleCodeExporter commented 9 years ago
I'm afraid we can't solve this problem. I have a HTC Dream (G1) and sometimes 
this
problems happens with it too. 
The problem is that we cannot notify the system in explicit way to connect to
internet. We just change apn entries and the system itself finds out it and 
tries to
connect to internet by it's own decision.
If after you push the switch button, apn entries changed (with removing or 
adding
prefix 'apndroid') then app done it's work and the OS begin to rule.

Anyway if it won't be very difficult, send us a log (using 'logged' version of
apndroid) after this problem come again. 
Instruction about log send:
http://code.google.com/p/apndroid/wiki/doesNotWorkHelpPage?ts=1259761362&updated
=doesNotWorkHelpPage

Original comment by zeldigas on 2 Dec 2009 at 1:43

GoogleCodeExporter commented 9 years ago
Ok. I see. Thanks for replay (and being so quick :) )
I will try to use log and send it to you.
Thanks again

Original comment by mmo.cue...@gmail.com on 2 Dec 2009 at 1:53

GoogleCodeExporter commented 9 years ago
Dear friend,

I've a new piece of information. I can upload a log with the behaviour 
described. 
The log represents the moment when connections where off, I turned on by 
clicking in
Apndroid widget..and Apndroid worked by I could not connect with 3G.

I hope this could be useful. If you need additional info do not hesitate to 
contact me.

Kind regards and thanks for time

Original comment by mmo.cue...@gmail.com on 2 Dec 2009 at 7:25

Attachments:

GoogleCodeExporter commented 9 years ago
I see. Behaviour really differs from my phone. Look at this lines:
{{{
12-02 19:22:23.105  1098:0x44a D/apndroid_dao ]
switch successfull

[ 12-02 19:22:23.105  1098:0x44a I/apndroid.log_tag ]
Switched in 157 ms

[ 12-02 19:22:23.125  1098:0x44a D/apndroid_stat_rcvr ]
Got status change message

[ 12-02 19:22:23.125  1098:0x44a D/apndroid_stat_rcvr ]
Switching current state to on

[ 12-02 19:22:23.185   124:0x7c D/TelephonyProvider ]
Setting numeric '21407' to be the current operator

[ 12-02 19:22:23.205  1098:0x44a D/apndroid.log_tag ]
Got status change message

[ 12-02 19:22:23.225  1098:0x44a D/apndroid.log_tag ]
Target status is on

[ 12-02 19:22:23.295    82:0x5a D/NetworkLocationProvider ]
onDataConnectionStateChanged 3

[ 12-02 19:22:23.305    82:0x5a D/GpsLocationProvider ]
state: DISCONNECTED apnName: null reason: apnChanged
}}}
As you can see here apn droid performed switching and Location provider in last 
entry
written current state. After this message i can't see in log any 
LocationProvider's
messages, but on G1 it then signals that state switched to 'Connecting' and then
after some time to 'Connected'.
In your case it does not happen. But there are a lot of strange errors about
connection failures to internet address. Currently i have no ideas about it...

Original comment by zeldigas on 2 Dec 2009 at 8:50

GoogleCodeExporter commented 9 years ago
I found what is the problem. Sometimes LocationProvider does not resolve apn 
name
(and the log show us this case becausee apnName: null). That's why reconnect to 
"on"
state does not happen. I'm downloading android platform source files now, hope 
they
can help me to solve this problem.

Original comment by zeldigas on 2 Dec 2009 at 9:27

GoogleCodeExporter commented 9 years ago
I appreciate it, thanks a lot.

Regards

Original comment by mmo.cue...@gmail.com on 2 Dec 2009 at 9:29

GoogleCodeExporter commented 9 years ago
Hey Guys! I'm using another product, but I have the same problem. Is it 
possible to (as a 
workaround) do an automatic on/off on Airplane Mode (off/on the cell)?

Original comment by dlux.hu on 8 Jan 2010 at 3:15

GoogleCodeExporter commented 9 years ago
Yes you could do that, toggle airplane just to force the network stack to reset 
itself.
I have some code that does that in Timeriffic:
http://code.google.com/p/autosettings/source/browse/trunk/AutoSettings/src/com/a
lfray/timeriffic/utils/SettingsHelper.java#378

Original comment by ralfoide on 8 Jan 2010 at 5:55

GoogleCodeExporter commented 9 years ago
Merging all the 'Not working' issues into Issue 12.

Original comment by martin.adamek on 19 Apr 2010 at 1:27