Android:How to send missed call alert sms? - android

If my mobile is not reachable or switched off when someone calls then I want to send sms to that particular person by automatically. How can i achieve this through code?
Please help me.

This, I believe, is impossible. If someone rings you, and you have no signal, then how is your phone meant to know? If it did know, surely your phone would actually RING instead?

You need to create service with phone state listener
ANdroid Development - Call state of the phone
and when you have call back send sms Sending text messages programmatically in android

Related

How to send data to another android device

I want that my app will send data (Equation) to another android device and when the other device will get that data he will make calculation with that data (equation).
any idea's how to send data ??
Thanks.
P.s: its similar to this preview question: Send an equation to another android user for solving auto
You can use GCM. it's the Android push notification.
The notifications will arrive to the device regardless if the app is in the background or forground.
About the user noticing it, it's up you. The push notification itself is not showing anything to the user. It enters a callback (OnReceive) and you as the developer decides what to do with it. you can show an alert at the status bar, Send a broadcast to a service, update the DB or in your case do something with an equation etc...
Are you considering Bluetooth as an option?
If so, this lib may help you https://github.com/buddles/AndBT

Inform the other person that call will be recorded

I have created one application which records incoming and outgoing calls. But now i want to inform the person on the other end that the call will be recorded. Can anyone please tell me the possible ways by which I can inform this.
The only practicle way to do this would be to send an SMS. Unless both subscribers have your app installed.
Unless both the users use your app, there is no way as David said. You could go with SMS, If not, you can consider USSD

Android/iOS programming to trigger an action

Is there any possibility to trigger an action on Android?
Like if we send a message to an android phone, it should execute some instruction, like running an app or something.
Is it possible with Android? Or iOS?
Or can the event be anything like reception of an email or phone call from a specific number or anything that can be done remotely?
Something as shown in the link here. But I want to know how to program these triggers.
Can someone help me out, please?
I want to manipulate the network settings so that it can automatically switch on the Wi-Fi or data and send back some data. Is that possible?
Yes you can trigger an action on android.
For that, you need to use a broadcastreceiver (here is a good article about how to use it http://www.vogella.com/articles/AndroidBroadcastReceiver/article.html)
Here is a simple example of the source code in order to display a message to the user when a sms is received.
http://androidsourcecode.blogspot.ch/2010/10/receiving-sms-using-broadcastreceiver.html

Is there any BroadCast Activity/services for sending an SMS?

i want to goes through some condition statement when a user hit a "send sms" button and thus if condition is satisfied then send the sms otherwise abort the composed sms !
can any one help me ?
No there is not broad cast activity to use it when sms is going to send,
This is not possible. Any application can use SmsManager to send an SMS, and such messages cannot be intercepted, except perhaps by custom firmware.
You can't block an outgoing sms. You can find out about it only after it has been sent. And you can do it by registering a content observer for sms, when the sms comes to sent box.
It is good question, when you are working by using any builten application in android, then it gives you some facility upto some extent, but you can't cross the limit.
If You want to control the send button of builten apps then it is impossible. You can't do this in android.

frequent c2dm message request

I had develop an android app that allow user to request info from their phone based on chrometophone example.
Everything is working well but i noticed that c2dm message only sent once to the device and subsequence c2dm will only reach phone after screen unlock.
This make me annoy as my app required to get data from phone without unlock screen multiple times.
Anyone can help on this?
Thanks and sorry for my bad English.
thanks lonel for reply.
I think I found the answer. there is a parameter called "delay_while_idle", chrometophone set this param to true so C2DM will send only when phone not in IDLE.
If I understand your question, you want to send messages to the phone while it is in an idle state.Sadly, you can't do it because C2DM messages are only received when the phone is not idle (i.e. unlocked).
On top of that the devices stop the wifi while they have the screen locked and they only bring it up from time to time.

Categories

Resources