how to know whether sms or contact is on display? - android

I am working on android application in which my service will be continuously checking whether sms or contact apps are on display or not.
can anybody help me to find out how to get know which contact or senders sms is on display.
thanks.

Fortunately, this is not possible, for obvious privacy and security reasons.

Related

Modifing SMS before sending in android

I was wondering if it's possible to modify the SMS before sending it in Android, but not only if it's send by my application, but also if it's being send by other applications. My application would work in the background and wait for an sms sending, and when that occurres it prevents it from doing so, modifies it and sends it.
For example, a default SMS application(built-in or otherwise) sends an sms to someone and I want to catch it before it does, modify the body(like add new receiver or some text inside message itself).
I think that this: Can I modify sms_body before sending SMS with built-in SMS Application? might be an answer to my question, but I'm not sure, and it's kind of old.
Let me know if I was unclear in something. Thanks.
Let me try with simple example-
Its just like you have an Account in a Bank and you wish all deposit should come in your Account. Here Account refers to your App and Bank refers to your Mobile device.
In a short, you can't achieve this on a non-rooted device. Yes that is possible on non-rooted device if user like to send his messages from your App, then surely you can modify messages written by user.
not only if it's send by my application, but also if it's being send by other applications
This is not possible, except perhaps on rooted devices.

Android - My SMS no longer ask when send service SMS

Android 5.0 will ask when SMS apps tries to send a service SMS ( 8xxx or 1xxx or something else ...)
But mine is no longer ask me when send it.
I tried to restore my phone twice today but it's not help.
Somebody can please give a solution ?
Have you tried going to Settings>Apps>"Your SMS app" and then clear default?

How to suppress android system popups for outgoing sms notifying user's current account balance for a pre-paid network plan?

My app is able to successfully intercept incoming SMS with a special code. Increased the priority in the manifest intent filter to suppress the broadcast for such special messages using abortBroadcast(). On receiving such special sms the app is supposed to send back an SMS with some info(lets say current location). I have been successfully able to achieve this as well.
The problem is, few of my customers might be on a prepaid plan. This means everytime they send an sms, a system popup comes up telling the remaining balance in their account.
Suppressing the incoming sms broadcast has solved half the problem because my customers dont want to receive these special sms in their inbox nor they want the notification. The problem that remains is how to suppress the outgoing "remaining balance" system popups? Is there a way(for non rooted android) to suppress these notifications?
One way is yes go to setting and manually disable it. That will disable it for all outgoing sms. I dont want my users to do that. I want to programatically suppress only those popups that are a result of sms sent by my app.
I am trying to add this feature for a legitimate use and my customers will be aware of this behavior. I am ok if the customer has to agree to any such settings during the install time(just like device admin policy manager or other usual app permissions).
Any suggestions?
I installed Balance Update / USSD Blocker from Play Store.... so far seems to be working. Available here
https://play.google.com/store/apps/details?id=com.melkote.quietbalance
Is there a way(for non rooted android) to suppress these notifications?
AFAIK, there is nothing in Android for this. Most likely, this popup was added by device manufacturers and carriers for their specific plans. You are welcome to talk to each device manufacturer and each carrier to determine if they offer any sort of API for adjusting this behavior.

Disble SMS Programmatically Android

I'm developing an app where the user selects contacts from his/her address book and then the app prevents them from texting said people. My problem is that I can't find any code to prevent texting people. I've found apps that prevent you from calling certain contacts but I'm more focused on texting. Any help would be appreciated.
-Thanks
I believe it's not possible for reasons specified at Android Broadcast Receiver for Sent SMS messages?
It seems that no Broadcast is made for outgoing SMS, so unlike calls, you can't adjust the content (number) or prevent it completely.

Problem in getting Contact Info

I m working on application in which i have to send all contacts from Android mobile to other mobile through SMS. I don't have any problem in getting contact information but when I send those Contacts after few messages there is Alert Window pop up saying "A large number of message have being send" and ask if you want to send or not.
I am testing this application on HTC Hero.
Is this problem is for specific mobiles or for all?
I don't know what should i do to avoid this window because I cant get SMS Sent event.
Please help me with any ideas that i can implement........
The alert window doesn't appear after a "few messages" — the limit is 100 messages, per application, per hour, before that warning appears.
If you really must use SMS, then I would suggest bundling multiple contacts together or batching the sends over time — short of rooting the phone, there is no way to get around this (sensible and useful) warning.
See also: http://groups.google.com/group/android-developers/browse_thread/thread/587f0d3a03ced88a
I think this a security check back to inform the user that an app is wasting a lot of money through sending a lot of SMS messages. If the use case of your app is valid you have to convince the user that sending all this messages is necessary and that he has to click the send button.
I hope and thinkg that there is no way to program around this because this a very sensible thing to do for a phone.

Categories

Resources