android back to privious activity

来源:互联网 发布:Linux改变所有文件权限 编辑:程序博客网 时间:2024/05/01 05:01

// showProgressDialog();

// bind events 

billButton = (Button) findViewById(R.id.billing);

billButton.setOnClickListener(this);

cancelbillButton = (Button) findViewById(R.id.cancelbilling);

cancelbillButton.setOnClickListener(this);



public void onClick(View v) {

int id = v.getId();

switch (id) {

case R.id.billing:

/**

* 商品购买接口。

*/

order(this,mListener);

break;

case R.id.cancelbilling:

this.finish(); // back  


break;

default:

break;

}

0 0
原创粉丝点击