Notification Setup: Overriding getServiceClass()

Hi in your documentation: https://backendless.com/documentation/messaging/android/messaging_push_notification_setup_androi.htm Create a class that extends com.backendless.push.BackendlessBroadcastReceiver. Your implementation must override the getServiceClass() method which returns the Class object of the service implementation:

package com.myPackage;import com.backendless.push.BackendlessBroadcastReceiver;import com.backendless.push.BackendlessPushService; public class MyPushReceiver extends BackendlessBroadcastReceiver{ @Override public Class<!–? extends BackendlessPushService–> getServiceClass() { return MyPushService.class; }}
Something is wrong with "<!–? extends BackendlessPushService–>"Can you clarify this code? Thanks

I see @Override in MyPushService code above the MyPushReceiver code, but there is no “<!–? extends BackendlessPushService–>”

Are you talking about this? Please help me understand what the issue is.

http://support.backendless.com/public/attachments/f92b6f6a5fed6b42ae8d10f2d1e2350d.jpg&lt;/img&gt;

http://support.backendless.com/public/attachments/3f2660eacb79fc50683bf6237fca95ce.png&lt;/img&gt;

So in Overriding getServiceClass() section of the code from the above link,
Do I just copy and paste it, then delete:
<!–? extends BackendlessPushService–>
Why did you put it there? as comments?
That’s all? Thanks

I see what you’re referring to. It is a notation indicating that the class returned from getServiceClass() must extend from the BackendlessPushService class. So in your code, you’d do this:

public Class getServiceClass()
{
return SomeClass.class; // << SomeClass must be a subclass of BackendlessPushService
}

Regards,
Mark