傻啦吧唧的程序员丶

android 调用系统通讯录添加联系人,并将号码传值到相应的控件内

Intent intent = new Intent(
							Intent.ACTION_INSERT,
							Uri.withAppendedPath(
									Uri.parse("content://com.android.contacts"),
									"contacts"));
					intent.putExtra(Intents.Insert.PHONE, number);
					startActivity(intent);

 

posted on 2012-11-21 11:36  傻啦吧唧的程序员丶  阅读(771)  评论(0)    收藏  举报

导航