Use wifi for some request and UMTS for other requests

by DWischer » Sat, 03 Oct 2009 03:45:57 GMT

Sponsored Links

what im trying to do is, to connect the phone to an adhoc wlan with no
internet access. Over this connection, i connect to a printer, to
print over wireless.
Normal http Requests should be made over the UMTS connection of the

Is it possible to choose the interface which will be used for the
connection? How is this made?


Use wifi for some request and UMTS for other requests

by lbcoder » Mon, 05 Oct 2009 21:18:44 GMT

 It should work like any other linux machine in this regard... i.e.,
you just need to set your routes 

Now there are a couple of issues you need to think about with regards
to this;
1) on wifi connection, it might actually disconnect you from your
carrier's data network. (I don't know since it is pointless to pay
extra for a carrier data plan given the proliferation of free wifi)
2) the route command doesn't exist on your device. You'll need to
install it.


Sponsored Links

Use wifi for some request and UMTS for other requests

by lbcoder » Tue, 06 Oct 2009 01:19:48 GMT

 Was there a point to your post?
If you are interested in having this feature added officially to
android (rather than just asking about a hack-a-round), then I suggest
a good place to start is here: 


Other Threads

1. StackOverflow Exception while using TabActivity

You have way too many nested viewsgroups/layout. Remove some of them :)

On Mon, Jul 20, 2009 at 10:04 PM, Dexter's

Romain Guy
Android framework engineer

Note: please don't send private questions to me, as I don't have time
to provide private support.  All such questions should be posted on
public forums, where I and others can see and answer them


2. Is there a way to backup and restore a Cursor?

Hello all,

I'm always get stuck when I want to do some testing with my Classes  
which are working against the default providers.

For example, one method of my class meant to get all audio from  

That's ok for implementation, but when I want to test it, problem comes.

I want to insert a data into  
MediaStore.Audio.Media.EXTERNAL_CONTENT_URI, and get all audio from it  
to see whether the data I inserted has been got by my method.

In order not to break the existed data on emulator/device, I want to  
back up the data first.

But when I look at the Cursor returned by query that URI, I found  
there are 27 columns!
Even I can list these columns and get the correct data to backup,  
there is still a problem of maintenance of this test.

At first I tried to use getBlob to get data from each column, but the  
SQL checks failed.

Is there a way to easy back the data from a cursor?

Thanks for your consideration,

3. Age of GPS data (continued)

4. PendingIntent / addProximityAlert problem

5. PendingIntent ProximityAlert problem

6. Add space between elements in a TableRow.

7. Some G1 phones getting "device not found" with adb...