API to change network settings (2G networks only)

by Kenny » Sat, 31 Jan 2009 11:37:21 GMT


Sponsored Links
 Hi All,

I've been looking around for an API which will allow me to change the
network settings of the phone.  I want to be able to tick/untick "use
2G networks only" via an app.  Can someone please shred me some light
or point me into the right direction as I can't find the API anywhere.

Thanks,
Kenny


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



Other Threads

1. SlidingDoor issue #1?

when adding a slidingDrawer object to my application, i got this error
when trying to display it on the main.xml layout view
i used that view to create it as the bottommost component, and
immediatly got this message in the console window and the layout
stopped showing.
here is the exception:
java.lang.IllegalArgumentException: The handle attribute is required
and must refer to a valid child.
        at android.widget.SlidingDrawer.<init>(SlidingDrawer.java:203)
        at android.widget.SlidingDrawer.<init>(SlidingDrawer.java:180)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown
Source)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown
Source)
        at java.lang.reflect.Constructor.newInstance(Unknown Source)
        at android.view.LayoutInflater.createView(LayoutInflater.java:499)
        at android.view.BridgeInflater.onCreateView(BridgeInflater.java:77)
        at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:
562)
        at android.view.BridgeInflater.createViewFromTag(BridgeInflater.java:
122)
        at android.view.LayoutInflater.rInflate(LayoutInflater.java:617)
        at android.view.LayoutInflater.inflate(LayoutInflater.java:407)
        at android.view.LayoutInflater.inflate(LayoutInflater.java:296)
        at com.android.layoutlib.bridge.Bridge.computeLayout(Bridge.java:371)
        at
com.android.ide.eclipse.editors.layout.GraphicalLayoutEditor.computeLayout
(Unknown Source)
        at
com.android.ide.eclipse.editors.layout.GraphicalLayoutEditor.recomputeLayout
(Unknown Source)
        at com.android.ide.eclipse.editors.layout.GraphicalLayoutEditor$2.run
(Unknown Source)
        at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
        at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages
(Synchronizer.java:133)
        at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:
3800)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3425)
        at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:
2384)
        at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2348)
        at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2200)
        at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:495)
        at org.eclipse.core.databinding.observable.Realm.runWithDefault
(Realm.java:288)
        at org.eclipse.ui.internal.Workbench.createAndRunWorkbench
(Workbench.java:490)
        at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:
149)
        at org.eclipse.ui.internal.ide.application.IDEApplication.start
(IDEApplication.java:113)
        at org.eclipse.equinox.internal.app.EclipseAppHandle.run
(EclipseAppHandle.java:193)
        at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication
(EclipseAppLauncher.java:110)
        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start
(EclipseAppLauncher.java:79)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run
(EclipseStarter.java:386)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run
(EclipseStarter.java:179)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:549)
        at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
        at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
--~--~---------~--~----~------------~-------~--~----~

2. Overlaying a TextView/Button/etc. on a GLSurfaceView

How exactly would one go about putting a button or TextView over a
GLSurfaceView, so that it works as if it were in a normal View? I've
been trying and failing to do this.
--~--~---------~--~----~------------~-------~--~----~

3. How's preloaded-classes file generated?

4. How to run android widget example in emulator

5. create an image "on the fly" and assign it to a button

6. Motorola coming out with Android handsets this year.

7. Is there a way to define default attributes of a Widget as applicable the application in context