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 0.0.0.0)

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

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
TabActivity.

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
BaseActivity).

Any thoughts on how to do this better?

tia.
--~--~---------~--~----~------------~-------~--~----~

2. Recommended uses of a class extending android.app.Application

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:

http://blog.tomgibara.com/post/126377651/global-application-state-in-android

2009/9/11 Android Development <indodr...@gmail.com>


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

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