tangweijun

update

......@@ -56,6 +56,7 @@ public class AppActivity extends Activity implements OnClickListener {
private Button btSwitchAcc;
private Button btOpenBbs;
private Button btQueryProducts;
private Button pb_bt_verifyname;
//提示LOG
private TextView txMsg,txSdkMsg;
......@@ -327,6 +328,7 @@ public class AppActivity extends Activity implements OnClickListener {
btSwitchAcc = (Button) findViewById(getRedIdByName("pb_bt_switchacc", "id"));
btOpenBbs = (Button) findViewById(getRedIdByName("pb_bt_openbbs", "id"));
btQueryProducts = findViewById(getRedIdByName("pool_query_products_id","id"));
pb_bt_verifyname = (Button) findViewById(getRedIdByName("pb_bt_verifyname", "id"));
txMsg = (TextView) findViewById(getRedIdByName("tx_msg", "id"));
txSdkMsg = (TextView) findViewById(getRedIdByName("tx_sdk_msg", "id"));
......@@ -340,6 +342,7 @@ public class AppActivity extends Activity implements OnClickListener {
btSwitchAcc.setOnClickListener(this);
btOpenBbs.setOnClickListener(this);
btQueryProducts.setOnClickListener(this);
pb_bt_verifyname.setOnClickListener(this);
}
public void yaOnClick(View view) {
......@@ -367,6 +370,8 @@ public class AppActivity extends Activity implements OnClickListener {
trackEvent();
}else if(view == btQueryProducts){
queryProducts();
}else if (view == pb_bt_verifyname){
Toast.makeText(this,PoolSdkHelper.verifyRealName(this),Toast.LENGTH_SHORT).show();
}
}
......
......@@ -84,6 +84,12 @@
android:text="事件上报" />
</LinearLayout>
</LinearLayout>
<Button
android:id="@+id/pb_bt_verifyname"
style="?android:attr/buttonStyleSmall"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="实名认证" />
<Button
android:id="@+id/pool_query_products_id"
......