is it possible to get copied text via intent-filters and broadcast receiver? I want to develop a dictionary application and when user copies text wherever in his phone I want to show the meaning of text. currently I have tried using a Base Activity to register listener but i it does not meet my need.
mClipboard = (ClipboardManager) getSystemService(CLIPBOARD_SERVICE);
listener = new ClipboardManager.OnPrimaryClipChangedListener() {
public void onPrimaryClipChanged() {
performClipboardCheck();
}
};
mClipboard.addPrimaryClipChangedListener(listener);