[Q] How to disable SMS feature from my Java app on Nexus - Java for Android App Development

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.

Related

Android SMS Application Issue..!!!!(Port Number)

Hello
Messaging APP:
Is it possible to use port numbers(to Send SMS) in Android App like we use in J2ME. So that only those App which have the same Port Number
can listen.
Problem Faced:
There is an Application X in Both Users A & B.
When we tried sending SMS from A to B using our X Messaging Application, The message will go to our App Inbox as well as Native Messaging.
Ex:
There is an Application X in Both Users A & B.
A sends sms to B. Only X's INBOX will get notified about the SMS and not the Native INBOX and should not store messages to Native Inbox. only application X will know about the sms.
It would be helpful if we get some solutions so that we can avoid the messages going to Native Inbox.
Thanks in Advance
Nitz Malikarjuna

Intercepting SMS

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.

MESSAGES

Does anyone know if there is a way to view an Inbox and Sent Items - message folders - for texting on the HTC Hero? The messages by default are like a thread.
Gill said:
Does anyone know if there is a way to view an Inbox and Sent Items - message folders - for texting on the HTC Hero? The messages by default are like a thread.
Click to expand...
Click to collapse
There is no SMS inbox and outbox on Android. It was designed with threaded view in mind.
It would still be possible to query the SMS content provider and filter / arrange messages in an inbox/outbox fashion. I haven't found an app that does it and I have no interest in developing one on my own, but it's not really that hard for someone with a little bit of Android experience, so maybe this feature will pop up in some sms apps (i just doubt that there's any wide interest in it).

[Q] HELP!! SMS converts to MMS

I'm not sure if this is is just an Android question or if I am limited on HD2 Android but when ever I type a SMS, when I reach 765 characters it automatically converts to MMS. Is there a way to turn this off so I can write SMS as long as I like?
that's normal in android and the only fix (till now) is to download handcent sms - there you can disable it! without a third party app it's nor possible...

[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

Categories

Resources