How to enable the the mobile network perator programmatically?

by manoj » Sun, 29 Nov 2009 15:02:00 GMT

Sponsored Links
 Hi all,

I am using the ADP1. I inserted a sim in the device.

And I need to manually set the network operator.

Actually there are 2 ways to select the network. operator:

1.  (Settings > Wireless controls > Mobile networks > Network
operators > Select automatically)

2.  (Settings > Wireless controls > Mobile networks > Network
operators > choosing our network.

I want the first one (select automatically) programmatically. How to
achieve this?

Can any one please suggest me how achieve this one?



Other Threads

1. Setting theme in an activity

Hi All,

This is my  themes.xml file


<style name=*"Theme.Blue"* parent=*"android:Theme"*>

<item name=*"android:windowBackground"*>*...@drawable*/bodyimg_blue</item>

<item name=*"android:colorBackground"*>@color/*royalblue*</item>

<item name=*"android:textColor"*>@color/*midnightblue*</item>

<item name=*"android:textViewStyle"*>@style/TextViewBlue</item>

This is main activity code snippet

*public* *void* onCreate(Bundle savedInstanceState) {



The background image is not getting loaded but the text color and
textViewStyle got changed.
The background image remains the defalult one -blank screen.
If I am setting the theme in android manifest file then it works properly.
Can anybody tell me the reason for this?

Warm Regards,


2. Multiple notifications, single icon on notification bar?


If I do:

   for (int i = 0; i < 3; i++) {
       NotificationManager.notify(i, notification);

I'll get three notification icons on the notification bar, and three
list items in the pull down. Is there a way to use only one icon on
the notification bar, but still keep three entries in the pull down? I
tried doing:

   for (int i = 0; i < 3; i++) {
       if (i > 0) {
           notification.number = -1;
       NotificationManager.notify(i, notification);

but no luck. The docs say that setting notification.number to zero or
a negative # will prevent it from showing up on the notifications bar,



3. baterai portable yg bagus

4. 1024x600 screen size in android 2.1

5. habis flash cm 5.0.8 test 1 gak bisa sync p

6. OOT : Belajar Root Android

7. Phone problems!