Android SMS context menu

I did a bit of work, but looked at google and I think I know the answer to this question before asking, but most of what I found on the Internet goes back almost a year.

Can I add an additional menu item to the SMS context menu so that, for example, the application I'm working on, if you click it, it can open your application from this message.

Otherwise, you can add a β€œflag” to the SMS, so that when it was received on the device, he tried to open it in another application, except for an SMS message if it is exsist.

* edit to clarify:

I am currently writing an application that is a regular SMS application (its uni project). I am trying to figure out if 1 of 2 things is possible:

1, add the context menu item to SMS in a standard application - the idea of ​​this menu is to link it to open it in my application

if not then

2, add somesort character? into a text message so that when it is restored to the phone, the service or something checks if the flag exists, if it does, it opens that the SMS message in my application (if installed) still opens it in the standard SMS application by default

+4
source share
1 answer

For the second approach, I suggest you use BroadcastReceiver.

BroadcastReceiver is used when any action is to be performed that must occur on a particular

event let say onIncomingVoiceCall or incomingSMS.

I think this will serve your purpose.

If you find my answer helpful, check it out.

Best regards, ~ Anup

+1
source

All Articles