Java Examples for com.alipay.sdk.pay.PayDemoActivity

The following java examples will help you to understand the usage of com.alipay.sdk.pay.PayDemoActivity. These source code samples are taken from different open source projects.

Example 1
Project: Dreamiya-master  File: DemoActivity.java View source code
@Override
protected void onCreate(Bundle savedInstanceState) {
    // TODO Auto-generated method stub
    super.onCreate(savedInstanceState);
    this.setContentView(R.layout.dreamiya_activity_demo);
    Button goto_pay_button = (Button) findViewById(R.id.goto_pay_button);
    userService = new UserServiceImplement();
    userService.test("210726");
    goto_pay_button.setOnClickListener(new View.OnClickListener() {

        @Override
        public void onClick(View v) {
            Intent intent = new Intent();
            intent.setClass(DemoActivity.this, PayDemoActivity.class);
            startActivity(intent);
        }
    });
}