Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5947295
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T16:56:37+00:00 2026-05-22T16:56:37+00:00

I am just wondering how to enable/disable 3G/2G using the Android SDK and not

  • 0

I am just wondering how to enable/disable 3G/2G using the Android SDK and not just intenting to the 3G settings page. Thanks. Also is there a way to do the same thing, but with GPS. Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T16:56:38+00:00Added an answer on May 22, 2026 at 4:56 pm

    There is no exported to the SDK functionality to switch between 2G and 3G. For a given device you could probably figure out the private functionality, but it wouldn’t work unless the app was signed with the system key.

    You can disable the radios though, by turning on airplane mode.

    And you might be able to make a shortcut to open the appropriate settings activity directly, instead of going through a few levels of menus to get there.

    If you make your own build, you can presumably add the capability you really want, but that’s likely not useful to anyone but yourself.

    Edit: further detail – to understand how it works, look at the settings menu code (default version, a given device will differ):

    http://android.git.kernel.org/?p=platform/packages/apps/Phone.git;a=blob;f=src/com/android/phone/Settings.java;hb=HEAD

    Edit: AOSP is no longer served from kernel.org. A browsable mirror of
    the current phone repository is at
    https://github.com/android/platform_packages_apps_phone however due to
    evolution of code organization there is no longer a Settings.java
    there. One might either use git to reconstruct the version above from
    this repository, or else try to figure out where the code has migrated
    to in current releases.

    You would need to find out the implementation specific set of NT_MODE_ constants you wish to toggle between. And you need to be able to write to secure settings, which requires being signed with the system key. Unless it’s a custom build, you probably don’t have access to that.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Just wondering if there is a way to enable spell checking in Xcode. Maybe
Just wondering if there is an easy way to add the functionality to duplicate
Just beeen using EF4 CTP code first and was wondering how to enable audit
Just wondering why people like case sensitivity in a programming language? I'm not trying
I was just wondering if there is the Lockdown Mode for trial version of
Maybe I'm not all there today, but I'm wondering how to get this to
I was wondering if there was a way to tell if a vertex attribute
Hi Guys just wondering if you could help, I have a page in C#
I was wondering if there are any API's available for C# to enable communication
just started using Zend Framework and I'm wondering what to do with odd classes

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.