kevin1986xu / asmack

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

Questions about Android Device 3G to WiFi transition issues #70

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What are you doing to produce the error?

1. ConnectivityManager that uses NetworkInfo notifies to BroadcastReceiver. 
Then     
   BrocastReceiver lets my app know the network connection status. 
2. BrocastReceiver lets my app know network disconnection. 
3. My app disconnect old session with XMPP server when network is newly    
   reconnected. 
4. My app sees if the network is connected and connect session with XMPP server.

What is the expected output?

When network connection mode is changed from 3G to WiFi old session should be 
completely terminated
and then only WiFi connection should be established.

What do you see instead? (Please attach a debug enabled logcat)

When network connection mode is changed from 3G to WiFi my app could not 
terminate the old session 
Furthermore it stops to work. After service of my app is terminated manually 
the session with XMPP server is connected and it works. 
So 3G to WiFi connection transition is the bug of my current app service with 
aSmack library. 

What version of aSmack / Android / Device do you use?

2010.05.07 / Android 2.3 / Galaxy S1 and S2

What server do you use? Is there a public server to reproduce the problem?

It is a custom server.

What else might help us to reproduce and hunt down the problem?

Original issue reported on code.google.com by fifae...@gmail.com on 9 Feb 2012 at 6:12