Well, at the moment I am using c2dm, but I was thinking that having a
more straightforward way of interaction between the server and the
client would be a lot better. I see c2dm as a way of sending "spot"
messages, just to notify the client that something happened, but with
channel api I could (if I haven't misunderstood) establish a sort of
p2p connection in order to __interact__ with the server without having
to poll.

For example, I don't see any expiry time in the c2d messages, so if I
want to be sure that I am not handling a message sent yesterday, I
need to implement an expiry in my application. It's nothing that I
can't do with asynchronous calls AND c2dm, but it would make my life a
lot easier not trying to reinvent the wheel.

In this way I could still use c2dm just to notify the client that the
server is interested in opening a connection with it, and then
establish the channel from the client. In this way I could save
battery and bandwidth.

Please correct me if I am wrong,

Federico


On Sat, Nov 20, 2010 at 1:00 PM, Lance Nanek <[email protected]> wrote:
> Wouldn't you just use Android Cloud to Device Messaging (C2DM) if you
> wanted to push data from a server to an Android client? Or are you
> trying to work around the high version requirement for that?
>
> On Nov 20, 4:09 am, Federico Paolinelli <[email protected]> wrote:
>> Hello there, I don't know if it would be better to post on GAE group,
>> but I'll try here.
>>
>> Given that channel api is about to be officially released, does
>> anybody knows if exists a java client library (or some code snippets)
>> for android?
>>
>> All the examples I saw were related to javascript, but I'd love to
>> experiment that feature on android too.
>>
>> Federico
>
> --
> 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

-- 
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