Sample code to demonstrate an Android 4.3 bug in ClipboardManager. The bug being demonstrated is only present in Android 4.3, and is expected to be fixed with the release of 4.3.1.
NOTE: This project was built with Android Studio v0.2.3
Steps to replicate the bug:
- Build this project and deploy it to a device running Android 4.3
- Run the app
- Tap the button labeled 'Enable'
- Switch to any app other than the sample app (eg. messengers, browsers, etc.)
- Attempt to copy some text to the clipboard
Expected result: The application you copy text from should crash with an error dialog.