Monday, August 2, 2010

Re: [android-developers] Syntax error in C2DM Registering in Google example

Thanks for the heads up! I've just submitted a change to fix this.

-- 
Trevor Johns
Google Developer Programs, Android
http://developer.android.com

On Fri, Jul 30, 2010 at 8:21 AM, feras <falnatsha@gmail.com> wrote:
Well, its not that big deal but i found a Syntax error in the code for
C2DM Registering from this site http://code.google.com/android/c2dm/index.html
at the error in the line below .

        registrationIntent.putExtra("app",
PendingIntent.getBroadcast(this, 0, new Intent(), 0);

where they missing the end ")" and here's my magical fix :)

        registrationIntent.putExtra("app",
PendingIntent.getBroadcast(this, 0, new Intent(), 0));

--
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+unsubscribe@googlegroups.com
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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment