Programatically selection of 3G network connection in G1?

by Joseph Teo » Tue, 12 May 2009 09:02:34 GMT


Sponsored Links
 Hi Folks,

I'm working on some data transmission program and current it works alright
on WIFI connection.

However, I understand that if I am in an environment where there are both 3G
and WIFI coverage... the phone will (by default) be turned onto the WIFI
network connection.

However, if for some reasons, I wish to be connected directly to 3G (e.g. 3G
is more stable in public WIFI area).... is it possible to do so
programatically on the Android phone? If i'm not wrong, it's possible using
the ConnectionManager API, am I right?

May i ask if anyone has done something like that and  don't mind sharing the
code snippets to do so , or point me to the right direction for this?

Many Thanks in Advance!

Joseph

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



Other Threads

1. AudioEffect integration

Hi
I'm looking to add some new AudioEffects into the framework and also
get a good understanding of the implementation architecture of the
AudioEffects framework.
I can't find any documentation about these. Is there any publicly
available that I've missed?

Specifically I'm not clear on how the Effects framework instantiates
effects when the same effect is applied to multiple tracks. Looking at
the AudioFlinger source code, it seems like effects are applied either
per-track before mixing, or on the output mix from the mixer. This all
makes sense, but the higher level APIs/Java API refers to:
* same effect engine being used multiple times
* CPU load limiting to allocate effects to particular users
* and some "connectMode" (EFFECT_INSERT or EFFECT_AUXILIARY), the
ultimate purpose/implementation of which I'm unsure.
In general, I'm not sure what this means for the implementation.
The documentation states that an EFFECT_AUXILIARY effect must be
created on the global output mix, but then implies that a media player
or audio track will only be "fed into this effect" if they are
explicitly attached and a send-level is specified. How can an effect
that is configured for session 0 (global output mix) end up not
applying to an audio track from an application? Does it get mixed
seperately in Audio Flinger?

Also, is there a way to enforce that effects don't end up conflicting
with eachother? e.g. Bass enhancement applying on an Audio Track and a
Bass enhancement effect on the global output mix.

Finally, what do Audio Effect implementations need to consider for the
case that the output device is transitioning from one to another (e.g.
speaker to bluetooth headset), or when 2 output devices are being used
at the same time (e.g. when ringtone plays it can play over speaker
and bluetooth headset simultaneously).

Thanks
Eugene

-- 

2. Detecting Search button

Is there a way to know whether a phone has a Search button or not?  I
believe Search is optional and not all phones have it.  I would like
to hide my UI elements for invoking search if I could determine the
presence of the hard button.

-- 

3. WMT : pull My files.apk dari Gtab

4. What's the official way to take a picture using the camera?

5. Uploading a zip file to localhost from android

6. need feedback on some alternative app stores

7. Are Amazon serious with the app store?