Click here to Skip to main content
11,922,641 members (57,176 online)
Rate this:
Please Sign up or sign in to vote.
See more: C# IIS Mobile 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 5: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 6-Mar-13 15:20pm
good advice..+5
Krunal Rohit 6-Mar-13 22:44pm
Ok that's fine !! I know it but how it works ?
Prasad Khandekar 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
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web04 | 2.8.151125.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