diff --git a/res/layout/activity_basic_test.xml b/res/layout/activity_basic_test.xml
index 092edb6..d7b370c 100644
--- a/res/layout/activity_basic_test.xml
+++ b/res/layout/activity_basic_test.xml
@@ -1,27 +1,59 @@
-
-
\ No newline at end of file
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/res/values/strings_sample.xml b/res/values/strings_sample.xml
index 4dba193..99db523 100644
--- a/res/values/strings_sample.xml
+++ b/res/values/strings_sample.xml
@@ -64,6 +64,10 @@
强制打开GPS
直接拨打电话
+ 照片选择界面
+ 启动照相机
+ 到系统设置界面
+ 到联系人选择界面
diff --git a/src/com/zftlive/android/sample/basic/BasicTestActivity.java b/src/com/zftlive/android/sample/basic/BasicTestActivity.java
index b5de184..289af0b 100644
--- a/src/com/zftlive/android/sample/basic/BasicTestActivity.java
+++ b/src/com/zftlive/android/sample/basic/BasicTestActivity.java
@@ -17,7 +17,7 @@ import com.zftlive.android.tools.ToolPhone;
*/
public class BasicTestActivity extends BaseActivity implements View.OnClickListener{
- private Button btn_opengps, btn_call;
+ private Button btn_opengps, btn_call,btn_contact,btn_setting,btn_carema,btn_photo;
@Override
public int bindLayout() {
@@ -28,9 +28,17 @@ public class BasicTestActivity extends BaseActivity implements View.OnClickListe
public void initView(View view) {
btn_opengps = (Button) findViewById(R.id.btn_opengps);
btn_opengps.setOnClickListener(this);
-
btn_call = (Button) findViewById(R.id.btn_call);
btn_call.setOnClickListener(this);
+ btn_contact = (Button) findViewById(R.id.btn_contact);
+ btn_contact.setOnClickListener(this);
+ btn_setting = (Button) findViewById(R.id.btn_setting);
+ btn_setting.setOnClickListener(this);
+ btn_carema = (Button) findViewById(R.id.btn_carema);
+ btn_carema.setOnClickListener(this);
+ btn_photo = (Button) findViewById(R.id.btn_photo);
+ btn_photo.setOnClickListener(this);
+
}
@Override
@@ -57,6 +65,18 @@ public class BasicTestActivity extends BaseActivity implements View.OnClickListe
case R.id.btn_call:
ToolPhone.callPhone(this, "10086");
break;
+ case R.id.btn_contact:
+ ToolPhone.toChooseContactsList(getContext(), 99);
+ break;
+ case R.id.btn_setting:
+ ToolPhone.toSettingActivity(getContext());
+ break;
+ case R.id.btn_carema:
+ ToolPhone.toCameraActivity(getContext(), 88);
+ break;
+ case R.id.btn_photo:
+ ToolPhone.toImagePickerActivity(getContext(), 77);
+ break;
default:
break;
}