Can I force Android to open a network connection on a specified network interface/network type ?

by David Turner » Fri, 06 Mar 2009 20:25:49 GMT

Sponsored Links
 You only need to bind() to the corresponding network interface's IP address
(instead of

However, I don't know how you can get what you want from Java in a reliable

There is also the case of a VPN which might want to provide its own
interface to the network
independently of the real connection state.


Other Threads

1. Activity and TabActivity...

i have a base class "BaseActivity" and a class that dervies from

I am doing a bunch of stuff in BaseActivity -- esp. in the overriden
methods so I can avoid having to do it in all my activities
("generalize and promote").

I am finding it a bit of a pain that I have to make all those same
changes/fixes/updates in my TabActivity class as well (since I can't
really change that TabActivity derives from Activity instead of

Any thoughts on how to do this better?


2. Recommended uses of a class extending

I think it's more accurate to say *you may choose* to maintain global state
by extending Application.
It's my preferred approach, though it's important to to instantiate global
state lazily wherever it's sensible to do so.

I describe my default approach here:

2009/9/11 Android Development <>


3. Android License compatibility with LGPLd code

4. how to change ListView Item Text Color?

5. ListView special case

6. Change Text in Text View

7. IP subnet mask