[android-developers] Re: What happens when i change the kernel config file and build the OS with the changed kernel config file?

2011-02-12 Thread 捷超 王
Many thanks! On 2月11日, 下午5时17分, Kostya Vasilyev kmans...@gmail.com wrote: Sounds right. That C function, getaddrinfo, is IPv6 aware. If the kernel was compiled without v6 support, it returns an error code, which is then turned into an exception by the Java networking library. -- Kostya

[android-developers] Re: What happens when i change the kernel config file and build the OS with the changed kernel config file?

2011-02-11 Thread 捷超 王
Thank you very much, The Browser utilizes a class called InetAddress to deal with Internet address. The InetAddress class further calls getaddrinfo, which is a native method to resolve the URLs. This native method is implemented in C and will throw an exception when it is resolving a IPv6 URL

[android-developers] Re: What happens when i change the kernel config file and build the OS with the changed kernel config file?

2011-02-11 Thread 捷超 王
I have read the link and understand that migration to IPv6 when the application is implemented in pure JAVA is easy. But (i don't know why) the Browser did not utilize pure JAVA code to deal with the IPv6 connection... When we build the OS, we can specify the kernel config file to build against.

[android-developers] Re: What happens when i change the kernel config file and build the OS with the changed kernel config file?

2011-02-11 Thread 捷超 王
Yes, i have read the page and understand that migration to IPv6 when the application is developed in pure JAVA is easy. But i don't know why the Browser uses getaddrinfo(), which is a C function, to deal with IPv6 connection. When we build the OS, we can specify the kernel config file to build

Re: [android-developers] Re: What happens when i change the kernel config file and build the OS with the changed kernel config file?

2011-02-11 Thread Kostya Vasilyev
Sounds right. That C function, getaddrinfo, is IPv6 aware. If the kernel was compiled without v6 support, it returns an error code, which is then turned into an exception by the Java networking library. -- Kostya Vasilyev -- http://kmansoft.wordpress.com 12.02.2011 1:03 пользователь 捷超 王

[android-developers] Re: What happens when i change the kernel config file and build the OS with the changed kernel config file?

2011-02-08 Thread 捷超 王
Yes, i have read the page and understand that migration to IPv6 when the application is developed in pure JAVA is easy. But i don't know why the Browser uses getaddrinfo(), which is a C function, to deal with IPv6 connection. When we build the OS, we can specify the kernel config file to build

Re: [android-developers] Re: What happens when i change the kernel config file and build the OS with the changed kernel config file?

2011-02-08 Thread Kostya Vasilyev
You didn't say you were interested in native code. The kernel is built a certain way, and it doesn't need to reference build config files - the code to support IPv6 is either there or not. The C functions for socket stuff call into the kernel. Some of those give a C application the ability

[android-developers] Re: What happens when i change the kernel config file and build the OS with the changed kernel config file?

2011-02-07 Thread 捷超 王
The Browser utilizes an JAVA class named InetAddress and this class further calls the getaddrinfo native method to resolve the URLs. I am still not sure what reads the changed kernel config file and contributes to the changed behavior of the Browser.apk. Is build/core/ main.mk? On Feb 7, 1:48 am,

Re: [android-developers] Re: What happens when i change the kernel config file and build the OS with the changed kernel config file?

2011-02-07 Thread Kostya Vasilyev
According to the link I posted before: http://download.oracle.com/javase/1.5.0/docs/guide/net/ipv6_guide/index.html getaddrinfo() is IPv6-aware, but of course depends on kernel support being there. So go head and read that page, I think it goes a long way towards answering your question.

[android-developers] Re: What happens when i change the kernel config file and build the OS with the changed kernel config file?

2011-02-06 Thread 捷超 王
OK. Thank you. But i would like to know, what problems are appropriate to post here? On Feb 7, 12:04 am, Kostya Vasilyev kmans...@gmail.com wrote: Perhaps the browser always recognizes IPv6 addresses, and tries to use them? If IPv6 is disabled in the kernel, trying to use a v6 socket should

Re: [android-developers] Re: What happens when i change the kernel config file and build the OS with the changed kernel config file?

2011-02-06 Thread Kostya Vasilyev
From the group's description on Google Groups: http://groups.google.com/group/android-developers Discuss developing Android applications using the Android SDK. Get help with troubleshooting apps, advice on implementation, and strategies for improving your app's speed and user experience.