문제

Is there anyway that I can copy from clipboard, whenever the user copy some texts to clipboard in any application? Should I use services in my code?

Also is it possible to implement the way for api<11 ?

tnx in advance

도움이 되었습니까?

해결책 2

Check out the Clipboard Manager in Android

Clipboard Contents is lightweight clipboard manager for Android. The app can read contents from the clipboard history so that they can be copied into the clipboard again. Then you can edit, delete, and even share the links. Furthermore, while sharing links you can also shorten them provided URL is installed. The app automatically detects any links in the contents and provides relevant options so that you’ll be able to open or share them directly from the device.

다른 팁

Take a look developers android website. They have a Service called CLIPBOARD_SERVICE

http://developer.android.com/guide/topics/text/copy-paste.html

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top