4

I have an android application which collect accelerometer and microphone data. If those data satisfy a predefined condition, they should sends to a web service. Then all other android phones which a connected with this web service(phones which have the same application) can be received a notification automatically. But I have no idea about this notification sending part. What is the way to send notification to connected phones automatically. Thank you....!

Randi
  • 639
  • 2
  • 6
  • 23

3 Answers3

4

you can use push technology. You are in luck, there is C2DM(cloud to device Messaging) for android. Start from this blog

http://android-developers.blogspot.com/2010/05/android-cloud-to-device-messaging.html

Win Myo Htet
  • 5,377
  • 3
  • 38
  • 56
2

Was looking for this today, finished using :

http://www.pushbullet.com/ + Looked at : https://github.com/rharder/jpushbullet2

Fx Mzt
  • 381
  • 3
  • 5
2

You could go through this tutorial too,its a nice and neat one

http://www.vogella.de/articles/AndroidCloudToDeviceMessaging/article.html

John
  • 361
  • 1
  • 11