When copying String from any browser page, pasteData works properly. However when copying SpannedString from a message sent item editor(field), the application crashes and shows this error message: My code: where the ClipboardManager instance defined as clipBoard, below: All I’m trying to do is use pasteData in String format. How to get rid of this error? Any help is appreciated.