Is IPv6 over the wifi interface supported in the SDK?

by Michael Newton » Wed, 21 Apr 2010 11:32:03 GMT


Sponsored Links
 I'm hearing that IPv6 is supported by android, at least over the wifi
interface, but I cannot do anything with IPv6 through the SDK at all.
I am running Android 2.1 on an N1.

I can see that at the OS level, the wifi interface has a link local
inet6 address:

ufo:~ newton$ adb shell
$ cat /proc/net/if_inet6
00000000000000000000000000000001 01 80 10 80       lo
fe80000000000000022376fffe8d1e63 0c 40 20 80     eth0

... although ifconfig does not show it:

$ ifconfig eth0
eth0: ip 192.168.1.2 mask 255.255.255.0 flags [up broadcast running
multicast]

If in Java I call getInetAddresses on a java.net.NetworkInterface, I
only get the inet4 address.

As I'd expect from the above, I cannot connect via any Java APIs to
another link local IPv6 host on the same wifi lan

Depending on my approach I get "socket level is invalid", a bad socket
options error, host unreachable, or timeouts. Has anyone seen this
work or have any insight?

thanks
M.

--



Other Threads

1. how to switch between two views

hi friends,
I 'm beginner in Android ,To start with i was asked to do a simple
task ,i need to make blue and red screen appear on the screen
alternatively ,
to achieve this i wrote two layout files
1.  main.xml -- for to display red screen
2.  sub1.xml -- for to display blue screen

In oncreate() i wrote

 for(int i=0;i<20;i++)
       {
        setContentView(R.layout.main);
         try
          {
                Thread.sleep(500);
          }catch(Exception e){}
          setContentView(R.layout.sub1);
       }

but this doesn't work ,why ?
Please help to understand the concept

--~--~---------~--~----~------------~-------~--~----~

2. ArrayAdapter of widgets (button and EditText)

Hi,

i have wraped ArrayAdapter of a a single editText in a ListView
(notepad example)


ListView MsgListView = (ListView)findViewById(R.id.MsgListView);
Button addimage = (Button) findViewById(R.id.addimage);
final EditText EditMsgText = (EditText)findViewById(R.id.EditMsgText);
final ArrayList<String> todoItems = new ArrayList<String>();
final ArrayAdapter<String> aa;

        aa = new ArrayAdapter<String>(this,
        android.R.layout.simple_list_item_1,
        todoItems);
        MsgListView.setAdapter(aa);



EditMsgText.setOnKeyListener(new OnKeyListener() {
                public boolean onKey(View v, int keyCode, KeyEvent event) {
                if (event.getAction() == KeyEvent.ACTION_DOWN)
                if (keyCode == KeyEvent.KEYCODE_DPAD_CENTER)
                {
                todoItems.add(0, EditMsgText.getText().toString());
                aa.notifyDataSetChanged();

                return true;
                }
                return false;
                }
                });




Question:

how can i add 1 button in this listAdapter so button also appear each
time along with the editText in the list view

anyone help me please ASAP.

thanks
--~--~---------~--~----~------------~-------~--~----~

3. How to enable USB Mass storage?

4. Android Booting Problem

5. About the HOME key in the latest android source code

6. About the HOME key in the latest android source code

7. set proxy on android web browser with required username and password