zhqiyi / imsdroid

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

Can imsdroid support LAN? neither WLAN nor 3G. #139

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Install imsdroid in Android system by LAN accessing Network
2.Set Identity and Network
3.Imsdroid show "NO active network"

Now does imsdroid not support LAN? How can I solve this problem?

Original issue reported on code.google.com by ldf198...@163.com on 4 Jan 2011 at 2:41

GoogleCodeExporter commented 9 years ago
Now,the question is solved. 
when sign in sipservice, IMSDroid will check the type of Network. If the 
network type is neither wifi nor 3G, IMSDroid will auto exit, and give "No 
active network".

Now I change the code. When network type is LAN, IMSDroid don't exit, Then 
imsdroid work well!

I don't known whether this would introduce other problems, But imsdroid really 
work well when network type is LAN.

Original comment by ldf198...@163.com on 5 Jan 2011 at 5:09

GoogleCodeExporter commented 9 years ago
Thanks for the feedback.
Do you know which value (Network Type) is used to identify LAN connection?

Original comment by boss...@yahoo.fr on 7 Jan 2011 at 3:06

GoogleCodeExporter commented 9 years ago
The code in NetworkService.java is:
Log.d(NetworkService.TAG, String.format("++++netType=%d and netSubType=%d; 
%s---%s", netType, netSubType, networkInfo.getTypeName(), 
networkInfo.getSubtypeName()));

The print is :
D/org.doubango.imsdroid.Services.Impl.NetworkService( 3390): ++++netType=7 and 
netSubType=0; ETH---

NetWork Type is 7

Original comment by ldf198...@163.com on 19 Jan 2011 at 3:22

GoogleCodeExporter commented 9 years ago
The code in NetworkService.java is:
Log.d(NetworkService.TAG, String.format("++++netType=%d and netSubType=%d; 
%s---%s", netType, netSubType, networkInfo.getTypeName(), 
networkInfo.getSubtypeName()));

The print is :
D/org.doubango.imsdroid.Services.Impl.NetworkService( 3390): ++++netType=7 and 
netSubType=0; ETH---

NetWork Type is 7
At 2011-01-07 23:07:12��imsdroid@googlecode.com wrote:

Original comment by ldf198...@163.com on 19 Jan 2011 at 3:24