I am having a little trouble with the complier, Same code I use on Nexus 5, no error. as Soon as I use it in Tablet, it crash right away and the error said
java.la
Change this line
with this
Also i see a lot of anomaly in your manifest with respect to how you have declared GCM . Have a look at the technical docs.