AnDevCon: Android C2DM
I am scheduled to give a talk titled "Mastering C2DM - the Android Cloud to Device Messaging Framework" at AnDevCon San Francisco conference on March 9th, 2011, so I thought it would make sense to post some of my content online.
- Presentation Slides on Android C2DM
- Yamba (C2DM) Android Application (C2DM Client, source) (400.78 KB)
- Yamba (C2DM) Android Application (C2DM Client, APK) (328.86 KB)
- C2dm Plugin for Status.net (C2DM app-server) (15.10 KB)
Video:
Enjoy,
Sasa
This post is part of AnDevCon 2011 Videos.
Comments
Posted on Apr 21, 2011
I'm not a developer but am a software tester by profession and now a proud Android fan.
If you ever need help testing out an app somehow let me know.
If you ever need help testing out an app somehow let me know.
Posted on Jul 12, 2011
Hi Aleksandar Gargenta,
I have downloaded the application from the link mentioned above. When I executed the application in my Android Emulator, I am able to only refresh the data to see the messages in the "http://yamba.marakana.com/gdc2dmyamba", but I dont see any popup (push popup) on my emulator when a message is posted in the link: http://yamba.marakana.com/gdc2dmyamba
Please help me.
Thanks
GD
I have downloaded the application from the link mentioned above. When I executed the application in my Android Emulator, I am able to only refresh the data to see the messages in the "http://yamba.marakana.com/gdc2dmyamba", but I dont see any popup (push popup) on my emulator when a message is posted in the link: http://yamba.marakana.com/gdc2dmyamba
Please help me.
Thanks
GD
Posted on Jul 13, 2011
Folks,
We are currently experiencing some issues on the server-side of yamba.marakana.com, which is preventing us from talking to Google's C2DM cloud.
Once we move this to a new server, we should be back in business again.
That said, you should still be able to run this code yourself on your own status.net appliance.
Cheers,
Sasa
We are currently experiencing some issues on the server-side of yamba.marakana.com, which is preventing us from talking to Google's C2DM cloud.
Once we move this to a new server, we should be back in business again.
That said, you should still be able to run this code yourself on your own status.net appliance.
Cheers,
Sasa
Posted on Jan 5, 2012
hey SASA..
thx for the tutorials..
so where can i find tutorials on how to set up the app server to handle c2dm...
...
thx..
maleangelo@gmail.com
ohh by the way can zend server or wamp be used..
...
..
ciao
thx for the tutorials..
so where can i find tutorials on how to set up the app server to handle c2dm...
...
thx..
maleangelo@gmail.com
ohh by the way can zend server or wamp be used..
...
..
ciao
Posted on Jan 5, 2012
The server-side C2DM component was specifically written as a status.net plugin (which is what powers yam a.marakana.com).
Check out documentation on the plugins on http://status.net
It would take some effort to port to Zend.
Check out documentation on the plugins on http://status.net
It would take some effort to port to Zend.
Posted on Jan 17, 2012
Hi, thanks for this tutorial. It's been very helpfull.
I'm trying to shake things a little, and my app has this main activity instead of an application class as such.
The thing is that i am trying to lunch a service from one of the activities to star the c2dm registratios process by doing this:
The services is already declared in the manifest file like this:
If I comment the lines that try to start the service my app does not crash... and when it crash it shows the following:
Thread [<1> main] (Suspended (exception RuntimeException))
ActivityThread.performLaunchActivity(ActivityThread$ActivityClientRecord, Intent) line: 1647
ActivityThread.handleLaunchActivity(ActivityThread$ActivityClientRecord, Intent) line: 1663
ActivityThread.access$1500(ActivityThread, ActivityThread$ActivityClientRecord, Intent) line: 117
ActivityThread$H.handleMessage(Message) line: 931
ActivityThread$H(Handler).dispatchMessage(Message) line: 99
Looper.loop() line: 130
ActivityThread.main(String[]) line: 3683
Method.invokeNative(Object, Object[], Class, Class[], Class, int, boolean) line: not available [native method]
Method.invoke(Object, Object...) line: 507
ZygoteInit$MethodAndArgsCaller.run() line: 839
ZygoteInit.main(String[]) line: 597
NativeStart.main(String[]) line: not available [native method]
Any help would be appreciated! Thanks in advance!
I'm trying to shake things a little, and my app has this main activity instead of an application class as such.
The thing is that i am trying to lunch a service from one of the activities to star the c2dm registratios process by doing this:
Code:
Intent registrationIntent = new Intent("com.google.android.c2dm.intent.REGISTER");
registrationIntent.putExtra("app", PendingIntent.getBroadcast(this, 0, new Intent(), 0));
registrationIntent.putExtra("sender", "discovernrv@gmail.com");
this.startService(registrationIntent);
The services is already declared in the manifest file like this:
Code:
<service android:name=".RegService" android:exported="false">
<intent-filter>
<action android:name="com.wizard3d.discovernrv.REGISTER" />
</intent-filter>
</service>
If I comment the lines that try to start the service my app does not crash... and when it crash it shows the following:
Thread [<1> main] (Suspended (exception RuntimeException))
ActivityThread.performLaunchActivity(ActivityThread$ActivityClientRecord, Intent) line: 1647
ActivityThread.handleLaunchActivity(ActivityThread$ActivityClientRecord, Intent) line: 1663
ActivityThread.access$1500(ActivityThread, ActivityThread$ActivityClientRecord, Intent) line: 117
ActivityThread$H.handleMessage(Message) line: 931
ActivityThread$H(Handler).dispatchMessage(Message) line: 99
Looper.loop() line: 130
ActivityThread.main(String[]) line: 3683
Method.invokeNative(Object, Object[], Class, Class[], Class, int, boolean) line: not available [native method]
Method.invoke(Object, Object...) line: 507
ZygoteInit$MethodAndArgsCaller.run() line: 839
ZygoteInit.main(String[]) line: 597
NativeStart.main(String[]) line: not available [native method]
Any help would be appreciated! Thanks in advance!
Michel Desouza
Gangadhar Donthu
Male Angelo
Jose Quiroz



Location: San Francisco