I'm new to Android. I want to display the copied coupon code.
Here is code:
ClipboardManager clipboard = (ClipboardManager) mCtx.getSystemService(Context.CLIPBOARD_SERVICE);
ClipData clip = ClipData.newPlainText("Code", artist.getCoupon_code());
clipboard.setPrimaryClip(clip);
Toast.makeText(mCtx, "coupon code: "+clip+" is copied" , Toast.LENGTH_SHORT).show();
How to remove the red-underlined text and only display the coupon code i.e. green underlined text.