Click here to Skip to main content
Rate this: bad
good
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 5:32am

1 solution

Rate this: bad
good
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.
 
regards,
  Permalink  
Comments
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 400
1 Jochen Arndt 190
2 Richard MacCutchan 135
3 DamithSL 95
4 Garth J Lancaster 90
0 OriginalGriff 6,045
1 DamithSL 4,601
2 Maciej Los 4,032
3 Kornfeld Eliyahu Peter 3,480
4 Sergey Alexandrovich Kryukov 3,220


Advertise | Privacy | Mobile
Web01 | 2.8.141220.1 | Last Updated 6 Mar 2013
Copyright © CodeProject, 1999-2014
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