Use clipboard in Android

You can access the clipboard ClipboardManager service

Main code is as follows: 

Steps:

  1. Copy: Produce a number randomly, install clipboard next;
  2. Paste: Obtain data from clipboard,  installing EditText;
  3. Clear: Clear empty clipboard—-Stopped with Copy principle actually;

 

PS: Detailed content asks referenced developer documentation! : )