How can I disable the data connection?

by Erin Park » Fri, 10 Apr 2009 06:57:15 GMT


Sponsored Links
 Hi All,

It looks Android has the feature like "Always On" attempting the data
connection right after phone boots up and keeping the data connection
all the time.

is there any API to disable data connection? and then enable the data
connection?

B.Regards,

Erin.

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

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



How can I disable the data connection?

by Erin Park » Mon, 13 Apr 2009 12:08:22 GMT


 Hi all,

It looks android starts data connection right after phone boots up and
keeps the data connection until phone powers down.

Is there any API to disable data connection or enable data connection?

How can I do that?

B.regards,

Erin.

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


Sponsored Links


Other Threads

1. How to mix 2D graphics with layouts

I'd like to build an activity that is mixing layouts with 2D graphics.
So for example, would like to introduce an edittext with an integer
value and based on that value the size of a circle is dynamically
adjusted and drawn. Any idea how to do this?

For plain graphics I am using this approach here - but how can it be
expanded to cover Android layouts (buttons, editboxes, textviews,
radiobuttons, etc.)?

public class DrawTest extends Activity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(new GraphicsView(this));
    }

    static public class GraphicsView extends View {
        public GraphicsView(Context context) {
                super(context);
        }
        @Override
        protected void onDraw(Canvas canvas) {

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

2. System application upgrade and system app versions?

Hi,
I am having a scenario where I want to upgrade a preinstalled
application (let's say version 1.0). AFAIK, the new version (1.1) will
be installed on /data and will shadow the one in the system image.

However, if a new system image upgrade woudl contain a newer version
again (2.0), would Android run the 1.1 from /data or the 2.0 from the
new system image?

Another question - is there a <uses-sdk
android:maxSdkVersion="integer" /> tag that lets me specify that I do
not want to run on newer versions of the SDK, in case these wil
introduce unwanted behaviour and incompatible changes?

Cheers

/peter

GTalk:      neubauer.peter
Skype       peter.neubauer
Phone       +46 704 106975
LinkedIn   http://www.linkedin.com/in/neubauer
Twitter      http://twitter.com/peterneubauer

http://www.neo4j.org     - New Energy for Data - The Graph Database.
http://www.ops4j.org     - New Energy for OSS Communities - Open
Participation Software.
http://www.qi4j.org        - New Energy for Java - Domain Driven Development.

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

3. Twitter example code, importing and "resource exists with a different case"

4. Combining free and paid versions of app into a single apk - a proposal to the Google engineers

5. NullPointerException on setBackgroundResource

6. Installing APK files to your g1 mobile using Vista

7. PesterActivity gone?