代码启动插入一个联系人的电话以及打开一个联系人并且适应不同版本
@Overridepublic void onCreate(Bundle icicle) {super.onCreate(icicle);if (CONTENT_URI==null) {Toast.makeText(this, "We are experiencing technical difficulties...",Toast.LENGTH_LONG).show();finish();return;}setContentView(R.layout.main);Button btn=(Button)findViewById(R.id.pick);btn.setOnClickListener(new View.OnClickListener() {public void onClick(View view) {Intent i=new Intent(Intent.ACTION_PICK, CONTENT_URI); // Log.i("CONTENT_URI",""+CONTENT_URI);startActivityForResult(i, PICK_REQUEST);}});}@Overrideprotected void onActivityResult(int requestCode, int resultCode,Intent data) {if (requestCode==PICK_REQUEST) {if (resultCode==RESULT_OK) {startActivity(new Intent(Intent.ACTION_VIEW,data.getData()));Log.i("data.getData()",""+data.getData());}}}?