Access sim card via code in Android

by ilana » Tue, 09 Feb 2010 01:41:54 GMT


Sponsored Links
 Hi All

I am quite new to Android.
I develope telephony tests that checks SIM functionality
Can somebody provide code examples of how we can access sim card via
code
What Android APIs can I use to read contacks to write sim etc.
I have an access to internal apis (that are not a part of Android)


Thanks

--



Other Threads

1. Installing apps to Nexus One device

Hi,
I"m running Win XP 32 bit, SP3.
I have Nexus one device. and I develop on Eclipse.
I'm trying to install my app to test it on a real device - my own
Nexus one.

after downloading and installing the USB driver - the devices charges
just fine. after I mount the USB storage (from the device) I can even
see the phone's file system from the computer (thus able to move files
in and out of the SD card).

however - "adb devices" command returns an empty list.
also, Eclipse "Device Chooser" doesn't show the device (it shows
emulators I previously configured).

anyone has an answer?

thanks!

-- 

2. Probl猫me wcf android

Bonjour
Je veux appeller un service wcf (.net) depuis une application android.
j'ai russi  tablir la connexion avec le service (aprs plusieurs
corrections de bugs). L j'ai une exception que je n'arrive pas 
rsoudre
"Cannot set method after connection" et qu'on je passe en mode debug
je reois une erreur "jar KSOAP2 has no source attachment".
L'exception est releve lors de l'appel de la mthode Call de la class
androidHttpTransport. J'ai cre la classe androidHttpTransport car il
n'arrive pas  la trouver dans le jar KSOAP2 fourni

Je vous donne le code de mon activity:

                private static final String SOAP_ACTION = "http://
tempuri.org/IServiceEval/sayHello";
        private static final String METHOD_NAME = "sayHello";
        private static final String NAMESPACE = "http://tempuri.org/";
        private static final String URL="http://172.20.0.35:8732/
Design_Time_Addresses/GettingStarted/Service1/?wsdl";

@Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        unButton=(Button) findViewById(R.id.my_button);
        unButton.setOnClickListener(this);
        tv = (TextView)findViewById(R.id.my_Text);
        log=(EditText)findViewById(R.id.EditText01);
        pass=(EditText)findViewById(R.id.EditText02);

        }
    public void onClick(View v) {
        int id=1;
        if(v==unButton)
        {
                 try{

                  callWebService();
         }
         catch(XmlPullParserException xml){
                                 xml.printStackTrace();
         }
         catch(IOException ex){
                 ex.printStackTrace();

         }
                }
        }
public void callWebService() throws IOException,
XmlPullParserException{
        SoapObject request = new SoapObject(NAMESPACE, METHOD_NAME);
        SoapSerializationEnvelope envelope = new
SoapSerializationEnvelope(SoapEnvelope.VER11);
        envelope.dotNet = true;
        envelope.setOutputSoapObject(request);

        com.example.android.AndroidHttpTransport androidHttpTransport
= new  com.example.android.AndroidHttpTransport(URL);
       // AndroidHttpTransport androidHttpTransport = new
AndroidHttpTransport(URL);
        try {

             androidHttpTransport.call(SOAP_ACTION, envelope);

            // resultRequestSoap = envelope.getResponse();

             //Parse Response
             SoapObject resultsRequestSOAP = (SoapObject)
envelope.getResponse(); //envelope.bodyIn;

             //Return a String for view
             tv.append(resultsRequestSOAP.toString());
        } catch (Exception e) {

        e.printStackTrace();
        }

   }

Vos ides sont les bienvenues. Merci

-- 

3. Problem in the Notepadv3 tutorial code...

4. Search for Midi Package

5. ListView created programmatical ly - emptyView doesn鈥檛 pop up

6. I got an error when I was compiling the hero ROM.Need some helps.

7. drawable-hdpi not appearing in eclipse emulator