I am having difficulty using my broadcast receiver class to sign up for registration with CD2M.

On Android devices 5.0 or higher, it requires an explicit intent. However, the explicit intent does not ever work. I know providing some code is best so I will provide a rough outline.

This is the version that works on devices lower than 5.0.

Intent myIntent=new Intent("com.google.android.c2m.REGISTER");
myIntent.putExtra("sender","3759458");
myIntent.putExtra("app","0sas0df");
startService(myIntent);

This is what doesn't work:

Intent myIntent=new Intent(com.example.appName,MyBroadcastReceiver.class);
myIntent.setAction("com.google.android.c2m.REGISTER");
myIntent.putExtra("sender","3759458");
myIntent.putExtra("app","0sas0df");
startService(myIntent);

MyBroadCastReceiver inherits from BroadCastReceiver.

Any help at all would be appreciated. Thank you.