this guide got me up and running: http://code.google.com/android/c2dm/index.html

only thing its missing, is how the server authenticates (the auth
variable in the http post), but i found that pretty easily elsewhere

On Apr 14, 2:31 pm, nino <[email protected]> wrote:
> I have an application that uses C2DM notifications. I'm pretty new to
> Android development because I think my problem is actually quite
> simple and I just don't know how the android architecture works so
> here it goes, I hope you guys can help.
>
> What I did basically is copy the classes C2DMBaseReceiver,
> C2DMBroadcastReceiver and C2DMMessaging from the chrometophone
> project. I then created a C2DMReceiver extends C2DMBaseReceiver and
> created the override events. The onMessage event works, as I added a
> log entry to output the data I push to the device. Now I have an
> activity and would like to pop up an alert box from the (already
> opened) activity, as soon as a message is pushed to my device. I'm
> really lost here, as I can't figure it out.
>
> Google and many different forums/mailing lists are suggesting me to
> initiate a BroadCastReceiver in the activity and override the
> onReceive method. The problem is that the C2DMBroadcastReceiver has
> declared the onReceive method as final, so there is no way to
> overwrite it. So I started to think, that this is not the right way to
> go...
>
> I found some other example, telling me to send a broadcast from my
> C2DMReceiver and watch this from my Activity, I think this sounds
> reasonable, but I have no idea how to implement it.. Does anyone of
> you have some examples on how to get started here?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to