Please look in logcat (command line: adb logcat ; or Eclipse > Windows > Perspective > DDMS) for the exact error that happens.
R/ On Wed, May 20, 2009 at 5:50 AM, Jayanthi <[email protected]> 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 -~----------~----~----~----~------~----~------~--~---

