Launch App before sending SMS - java

My idea: have an hook to force Android to call a function of my App before an SMS will be sent.
What I want to do is to ask the user (that wrote the SMS using an arbitrary App or the standard App) if he wants to send the SMS using GSM (= normal way) or an other provider over Internet.
Is it possible? I found some information about ContentObserver, but I'm not sure how I can cancel the send of the "normal GSM send" after I sent the SMS via Internet...
Thanks for any help!
Luca

There is no such hook available to call your app function before sending the SMS. You may have to customise Android framework to achieve this.

Related

Twilio reply to incoming sms by ivr call

I have just found out about Twilio so I don't know much about it what is possible or not. What I want to do is whenever a user sends an SMS to Twilio number I want to reply with an IVR (Interactive voice response). I have been able to reply to the incoming SMS with an SMS but not able to find how to reply with an IVR call. Any help would be appreciated.
Thanks.
You can use a product like Twilio Studio to do this with very little to no code. You associate a Studio flow to your Twilio number (which becomes your source of Twilio Markup Language / TwiML) and can handle both inbound messages and inbound/outbound voice calls via the Trigger Widget which initiates the Studio flow (a top down run through your logic composed of widgets).
You can send an inbound SMS which can be responded to with a Send Message Widget for an SMS response and then a Make Outgoing Call Widget to connect that party to your IVR, also created in Studio using the Gather Input on Call Widget.
Twilio Studio You Tube Play List

How to send a notification from an android app to another android device using phone number?

I am developing an android application and i need to send a notification from the app to a phone number (another device).
Can anyone tell me how can i implement this? any methods or API i can use?
Thank you in advance
I don't think you can do it without developing server-side software that Android devices will connect to. In your server-side software you can use FCM(Firebase Cloud Messaging) or any other framework/library to send notifications to one or group of devices.
Problem is that you need to have connection to the other device and you can't know if that device is connected to internet and even if it is you don't know the address of that device. 99.99% that you need server-side software.
the easiest way (but the most expensive i guess) is to have the first device send a request to a server (whose backend you have to build, eg. php) that will send a push notification to the second device via Google Cloud messaging service.
that's not so easy because the second device to receive the notification must register at GCM and the first device must identificate the id of this device (the common way is to have a common id like username)
There is on possibility without using server side code, Send SMS to the second Phone and read the SMS in second phone and display your notification in second phone. It will cost the SMS charges in both phones.
Create an API that communicates with the users of the application this will be able to send updates to the registered users at real-time.
http://www.androidhive.info/2012/10/android-push-notifications-using-google-cloud-messaging-gcm-php-and-mysql/

How can I change telegram verification SMS content

How can I modify telegram SMS verification text content to MyAppName code xxxxx instead of Telegram code xxxxx?
This is not Possible. The SMS is sent by Telegram Servers to your prospective users mobile phone.
You're Telegram Client/ Telegram code simply initiates this interaction via the following request:
https://core.telegram.org/method/auth.sendSms
auth_sendSms#da9f3e8 phone_number:string phone_code_hash:string = Bool
Notice that there is no room for customizing this.
Although this does not solve the problem directly, I think it is an okay workaround.
Intercept incoming SMS and check if it is from Telegram.
If it is read the SMS and delete it right there if it is not let it pass by the default SMS app.
Parse the SMS for the verification code and input it automatically to your verification text field.
You probably thought of this already :)
PS: If you like this approach you can learn more about implementing it with this awesome tutorial.

Open my mobile Java program with SMS, no SMS in inbox

Is it possible to open my mobile Java program with an SMS?
And I don't want this SMS to be stored in the inbox. I'm looking for the kind of "Control SMS" that banks use for their mobile applications. I want the same in my application: send SMS to the mobile, the mobile device shows a message on screen that will be opened by the program, and this SMS should not be saved in the inbox.
Are you sure that you're not mistaking push notifications/cloud to device messages for SMS's?
Push/C2D messages are similar to SMS's inasmuch as a central server sends a message out to devices and many apps then display a popup based on that message, but the implementation is completely different. If you're not mistaking the two, is there a reason you'd prefer to use SMS's that are handled differently than most instead of push/C2D messages?
Here's the documentation for Apple's Push Notification Service.
Here's Android's Cloud to Device Messaging documentation which serves the same purpose.
Have a look and see if that would serve your needs.
If you are looking for completely client side J2ME based solution for feature phones - then try push registry. It is available above MIDP2. I don't know the exact details but there you can define event and triggers which will be stored by phone OS and invoked automatically when particular type of event occurs.
SMS sending is separate issue but there are tools available for that definitely.

Android SMS Manager

I've been thinking about working on an app that allows a user to send text messages for free to other users of the application. I thought I would use the SMS Manager API to accomplish this.
My question is, does the SMS Manager API send an sms using the phone's texting plan ?
Thanks !
Yes it does.
http://developer.android.com/reference/android/telephony/SmsManager.html
All "SMS" is carried out by the carrier. If you would like app to app messaging, you need data. Either through a carrier or Wi-Fi.

Categories

Resources