Click here to Skip to main content
11,718,016 members (86,253 online)
Rate this: bad
Please Sign up or sign in to vote.
See more: C# IIS WCF Android
hello all,

how android emulator or device would be notified, if server's state got changed..
i.e. If I am inserting a new record in Database at that time android device will get notification that "New Record Added !!"

I'm thinking about following Observer Pattern but is there any other way around to get rid of this problem !!

Don't ask for code or what have you tried so far, because It's my blind assumption and I shall have to implement it ASAP !!

Thanks !!
Posted 6-Mar-13 4:32am

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Hi Krunal,

You will glad to know that As of Android 2.2 it is possible to push information to an Android app. This service is called Cloud to Device messaging or short C2DM. You can find a detailed tutorial here.

Please note that I have not tried this yet, but it's definitely worth a try.

ridoy at 6-Mar-13 15:20pm
good advice..+5
Krunal Rohit at 6-Mar-13 22:44pm
Ok that's fine !! I know it but how it works ?
Prasad Khandekar at 7-Mar-13 13:47pm
Hello Krunal,
There is very good documentation and sample app available at GCM website. It's still a pull request, but it is issued by the internal classes and your app only gets a callback. Think of it as JMS pub/sub where in the pull requests are issued by an internal puller and your app receives a callback and your code is freed from implementing the message pump.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 215
1 F-ES Sitecore 210
2 Maciej Los 140
3 Jochen Arndt 120
4 Andy Lanng 115
0 Sergey Alexandrovich Kryukov 1,649
1 OriginalGriff 535
2 Maciej Los 529
3 Richard MacCutchan 440
4 CHill60 415

Advertise | Privacy | Mobile
Web01 | 2.8.150901.1 | Last Updated 6 Mar 2013
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100