I want to make a simple service (which will work in the background), when any user copies something from a browser or SMS, etc., there will be a toast showing that the text
I have this code that gives a toast when there is a phone call
public class MyPhoneReceiver extends BroadcastReceiver { @Override public void onReceive(Context context, Intent intent) { Bundle extras = intent.getExtras(); if (extras != null) {
and this code in manifest.xml
<action android:name="android.intent.action.PHONE_STATE"></action>
Now this code says to send the state of the phone to the myreciever
class, now I want to get the text from the clipboard manager. is there any intent.action
state that intent.action
class can call when someone copies text.
Any help or code would be appreciated.
Iori
source share