How to copy six digit code from sms and paste anywhere in app in android
<p>I am working on an app in which i am using SMS API for getting the 6 digits verification code.Everything is working good , but now my condition is i want to copy the only 6 digits (ex. your otp is : <strong>676860</strong>).</p>

<p>I have serached many solutions on google ,i used <strong>ClipboardManager</strong> , but that is only useful for copying and pasting the data within the app only.</p>

<p>I checked following link also , but i didn't get the satisfactory answer.</p>

<p><a href="https://stackoverflow.com/questions/21722005/how-to-copy-some-specific-sms-content-into-clipboard">link</a></p>

<p>Can anyone suggest me or help me ,what should i use for copying and pasting 6 digit code from phone SMS to any app .</p>

<p>Answer will be appreciable.</p>

<p>Thanks in advance.</p>