I used this code for sending images through GCM but there is an error in this code:
@Override
protected void onMessage(Context context, Intent intent) {
String uriStr = intent.getStringExtra(FIELD_MESSAGE);
Intent notificationIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(uriStr));
PendingIntent contentIntent = PendingIntent.getActivity(context, 0, notificationIntent, 0);
notification.setLatestEventInfo(context, contentTitle, contentText, contentIntent);
mNotificationManager.notify(970970, notification);
}