Title: signature
Hi,
    can you paste the output from you logcat. And check whether you added the appropriate permission to you application in the Manifest file, you need android.permission.READ_CONTACTS for sure

Alan Cassar, Software Engineer | Tel: +356 21334457 | Fax: +356 21 334156
ricston Ltd., Northfields Suite 4, Independence Avenue, Mosta MST9026 - MALTA

email:  [email protected] | web:http://www.ricston.com


----------
Disclaimer - This email and any files transmitted with it are confidential and contain privileged or copyright information. You must not present this message to another party without first gaining permission from the sender. If you are not the intended recipient you must not copy, distribute or use this email or the information contained in it for any purpose other than to notify us. If you have received this message in error, please notify the sender immediately and delete this email from your system. We do not guarantee that this material is free from viruses or any other defects although due care has been taken to minimise the risk. Any views stated in this communication are those of the actual sender and not necessarily those of Ricston Ltd. or its subsidiaries.



Jayanthi wrote:
HI All,
plz find java file

package net.learn.getContact;

import android.app.Activity;
import android.content.ContentValues;
import android.database.Cursor;
import android.net.Uri;
import android.os.Bundle;
import android.provider.Contacts;
import android.provider.Contacts.People;
import android.util.Log;

public class getContact extends Activity {

        @Override
        public void onCreate(Bundle icicle) {
            super.onCreate(icicle);
            this.setTitle("Contact Card");
            setContentView(R.layout.main);
            Bundle bundle = getIntent().getExtras();
         // create a new name
            ContentValues values = new ContentValues();
            values.put(Contacts.People.NAME, "Test Name");
            // add it to the database
            Uri newPerson = getContentResolver().insert
(Contacts.People.CONTENT_URI, values);
}
}
I am getting error while running the application saying Sorry has
stopped expectely try again


  

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to