2011年2月18日

让所有Button共享一个监听器

摘要: private void initControls() { add = (Button)this.findViewById(R.id.btn_add); delete = (Button)this.findViewById(R.id.btn_delete); update = (Button)this.findViewById(R.id.btn_update); query = (Button)this.findViewById(R.id.btn_query); add.setOnClickListener(new MyButtonOnClickListener()); delete.setO 阅读全文

posted @ 2011-02-18 14:27 陆晓峰 阅读(668) 评论(0) 推荐(0) 编辑

Android 获取 联系人信息

摘要: Cursor cursor = cr.query(ContactsContract.Contacts.CONTENT_URI, null, null, null, null); List<String> numbers = null; while (cursor.moveToNext()) { numbers = new ArrayList<String>(); // 获取联系人 int nameFieldColumnIndex = cursor .getColumnIndex(PhoneLookup.DISPLAY_NAME); String name = curso 阅读全文

posted @ 2011-02-18 09:46 陆晓峰 阅读(800) 评论(0) 推荐(0) 编辑

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5
点击右上角即可分享
微信分享提示