[android-developers] how-to:Android SDK sources in eclipse

2011-04-20 Thread Finn Johnsen
I've made a very short step-by-step blog post on how to get to see the
android sources in eclipse.

http://johnsenf.blogspot.com/2011/04/android-sources-in-eclipse.html

hope it helps

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


[android-developers] Re: C2DMBroadcastReceiver in Activity

2011-04-20 Thread Finn Johnsen
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 nino.muel...@gmail.com 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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Send message with C2DM

2011-04-20 Thread Finn Johnsen
hi

strikes me as a network or firewall problem maybe. from your dev pc i
guess. as its complaining about not reaching mtalk.google.com at that
port.

dont know, just thinking loud.
finn



On Apr 15, 1:57 pm, vokvince vokvi...@gmail.com wrote:
 Hello,

 I'm working on C2DM, my registration is ok but when I send a message
 with my server, my phone don't receive it.
 My servor return an id =  id=0:1302860724014808%cacdd2750031
 And in the logcat i've:

 04-15 13:53:25.889: WARN/GTalkService(2672): [GTalkConnection.12]
 doConnect: caught XMPPError connecting to mtalk.google.com:5228.:
 (502)

 04-15 13:53:25.889: WARN/GTalkService(2672):   -- caused by:
 java.net.SocketTimeoutException: Transport endpoint is not connected

 Someone can help me please ? How find the issue ? Is it the server or
 the mobile ?

 Thx a lot !

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