开发者

Copy number to another intent/app textbox

i am trying to copy a number (total sale) from my app to the credit card processing app that i am using (square). how could i do that? i am trying to use intents.

        chargeButton.setOnClickListener(new OnClickListener() {
        public void onClick(View h) {
            Intent intent = new Intent(Intent.ACTION_INSERT);
            intent.putExtra(Intent.ACTION_INSERT,          textResult.getText().toString() );
            intent开发者_如何学编程.setComponent(new ComponentName("com.squareup",
                    "com.squareup.ui.PaymentActivity"));
            startActivity(intent);

i have searched all over and the only answer i am getting involves the secound app .getextras which i cant add to an app that's not mine. please provide code if possible. thanks for your help.


there is no way to use square without installing squareup on device

download helper library here

use code from here to make your payment

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜