Intercepting SMS - Android Software Development

I'm trying to make an app through which I can send remote commands to my phone via SMS from another phone. I want the program to detect when an SMS comes from a specific number and intercept it, i.e. preventing the Messaging app from ever detecting it and showing it in the Inbox.
Would this be possible without turning off notifications for the default messaging app and if does anyone know of any example source code?
Thanks

Recognize/React on incoming SMS :: anddev.org - Android Development Community | Android Tutorials

From what I recall there is no way to cancel the intent from being sent to other recievers, but you can adjust the priority yours is called in relation to others using the priority attribute. Set your reviever to run after the text message activitiy's receiver (use priority -1), and identify/delete the message using the text message content provider.
I think that's right, I am out right now and can't research it.

Related

Annoying Delivery SMS

Hello
is there a possibility that all this works a bit more nicer?
no extra sms?
maybe just a different color or symbol behind the sms?
+1
it has been discussed but there hasn't been any solution so far. I'm used to recieving a delivery report as some sort of push-sms that you open and then it disappears and isn't saved in the sms conversation, but you can access it via the properties of the sms you sent.
Do you mean a message sent notification? If so, this isn't possible because of HTC Messaging crapware.... if you disable it and go back to the original WM messaging app, you can then use Advanced Config 3.3 to turn on sms sent notifications after....

[APP] ICalledYou (Missed Call Alert)

This application keeps track of SMS notifications of incoming calls when you are not available, each mobile operator provides a different name (Missed Call Alert).
- When you receive one of these SMS you will get a notification and a call log with your contacts is updated.
- Clicking on items in the list you can call, send SMS, see the contact details, etc...
- The Find SMS feature allows to clean up SMS messages by importing older calls in the program
This program is free and supported by ads banner and reviews on the Market.
If you are a customer of a not supported mobile operator, or have problems in the recognition of SMS, send me an e-mail with the text message that usually get.
NOTE:
- Any Task Killer can interfere with the operation of the application. Be sure to place the application on the white list.
- If you use Handcent SMS, GoSMS or other applications to manage SMS remember to activate priority option in Settings.
- Finally, to make the application work it must have been opened at least once after installation.
Please post a reply with the text of the SMS you usually receive to let me add support of your country.
Play Store

[Q] How do I check whether a user has enabled hangouts' SMS function

I have developed an app which translates local missed call alerts' phone numbers into their names.
I catch the broadcast and then put up my own data to the sms database. And I put up a notification to open that sms thread.
So far, with the default SMS client, this works perfectly. But when the user has enabled hangouts, I cant open the app properly.
Is there a way to check whether hangouts is the default app for SMS?
Thanks.
tharaka said:
I have developed an app which translates local missed call alerts' phone numbers into their names.
I catch the broadcast and then put up my own data to the sms database. And I put up a notification to open that sms thread.
So far, with the default SMS client, this works perfectly. But when the user has enabled hangouts, I cant open the app properly.
Is there a way to check whether hangouts is the default app for SMS?
Thanks.
Click to expand...
Click to collapse
According to this link you should be able to determine the default SMS client by calling Telephony.Sms.getDefaultSmsPackage().
WisdomWolf said:
According to this link you should be able to determine the default SMS client by calling Telephony.Sms.getDefaultSmsPackage().
Click to expand...
Click to collapse
Thanks a lot

[Q] How to disable SMS feature from my Java app on Nexus

I am relatively new to Android SDK and I was referred to this forum
One of the requirements for my android app is to 1) disable the SMS text messaging feature based on certain criteria and 2) then enable the SMS text messaging feature after certain duration.
Which framework/module/API should I look into for controlling SMS from the java code?
Any suggestions/comments are appreciated
36kashili said:
I am relatively new to Android SDK and I was referred to this forum
One of the requirements for my android app is to 1) disable the SMS text messaging feature based on certain criteria and 2) then enable the SMS text messaging feature after certain duration.
Which framework/module/API should I look into for controlling SMS from the java code?
Any suggestions/comments are appreciated
Click to expand...
Click to collapse
Controlling sms feature is not so easy job. There is broadcast receiver which you have to implement and also you can stop the sms but if you want to allow it you have to manually send it in order to work.

[Q] Any fix for Contact-Specific Message Alerts?

I was wondering if anybody has found a fix for Contact-Specific Message Alerts? It uses the default notification no matter what you set up in Contacts / Message alert. I see the problem all over the web. Some say the fixed it by changing from Messages to Message+, other say they fixed it by changing from Message+ to Messages, some say to add SMS PopUp, some try factory reset with no avail. Based on date of posts and the different phones that have the problem, It appears this has been a problem for a long time, and is not not specific to the Note 3. It covers at least from the Note 3 to the Note 4, which would include at least the S4 and S5. In Contacts, I simply select from the standard alerts that came with the phone. I don't have Zedge installed or anything like that. It doesn't matter if I have the microSD card installed or not. Some say that it happens if the contacts are on the SIM, but this is a CDMA phone, and the only SIM it has is for Verizon LTE. I have a Google account, but I don't let Google store my information. I've read about the myriad of reliability and other issues of using 3rd party messaging apps. I just want to use the reliable Messages app that ships as the default on the phone, not some 3rd party app on someone else's server. I want contact-specific alerts so I will jump only when a monitor tells me about a server with issues, not every time there is a text message.
Thanks!
I have figured out my issues, but more importantly I am figuring out how things work. This issue is not specific to any particular Samsung phone or Android version.
Samsung Messages app and requirements
- The Messages app is the default Samsung messaging app. It is designed to work with the default Samsung Contacts app, which has the ability to define a "Message tone"(S5) or "Message alert"(Note 3) by contact. The property may already display in Contacts, or you may have to press a button in Contacts to add the field. Then simply specify the alert/tone you want.
- The contact must be a DEVICE Contact. For example, in my case I use Akrutosync to sync my Outlook with my phone. This requires setting up an Active Sync. Outlook and the phone sync perfectly, however any contact synced like this will only play the default Message tone/Message alert. If you go into the contact, and look at the Connection property, it will show Microsoft Exchange Active Sync. In order for it work work, it must say Device.
- The contact must have a phone number, and that number must be the source of the incoming message. For myself in the IT industry, it is commonplace to have server monitors send a text message via ###-###-####@vtext.com from an e-mail address. We want a different tone/alert for a server down than normal texts. The messages will show as coming from the proper contact, but it will only trigger the default Message tone/Message alert. Samsung said it shouldn't work that way, but I don't have a work-around for the problem.
Verizon Messages+ app and requirements
- Verizon Messages+ app is the default messaging app for Verizon phones. Messages+ can use Verizon's cloud if desired and your account supports it. That makes it simpler to create and respond to text messages for a specific phone number from multiple devices, including computers and tablets. It also means Verizon has access to your personal correspondence. However, even as a local application, It has built-in functionality to record an MMS message, send postcards, pictures from storage or camera, add captions to pictures, markup pictures, make collages, send your location with the click of a button, activate Glympse so people can follow you or link up with you, send someone a contact, send an MP3 or WAV file.
- Messages+ is designed to work with the default Samsung Contacts app, but DOES NOT USE the "Message tone"(S5) / "Message alert"(Note 3) property in Contacts.
- There is no way to do a contact-specific tone/alert in Message+. The best you can do is a conversation-specific tone/alert, and never delete the entire conversation. To do a conversation-specific tone/alert, at the top left next to the contact's picture, there are 3 horizontal lines. Flick those to the right to open a new window. Scroll to "Customize conversation", and then select Tones where you can select your tone for the conversation. Of course if you ever delete the conversation, the tone you set up will be lost also, and the next time you receive a message from the same contact, you will receive the default tone/alert. Message+ does not make use of the Message alert/tone set up in Contacts.
Note: Even when a 3rd party messaging app is set up correctly, you may still get the default tone. You may need to go to the main settings menu, pick 'Sound' then scroll down to 'Messages' under Samsung applications and turn that off.
Let me know if this helps you with your situation.

Categories

Resources