//sender = newSender(config);
sender = new Sender(ApiKeyInitializer.ATTRIBUTE_ACCESS_KEY);
Now it will atleast try to send but the log shows that it is getting a http 401 error code. So I tried both the server and browser app api keys, and I reset them both and tried them again. I also double checked the project Id number matches my phone app. So I am wondering if it has something to do with the fact that I had to change the sender constructor line to get it to run at all?? Here is a snippet from the appspot log:
com.google.android.gcm.server.Sender sendNoRetry: Request body: registration_id=APA91bH6KShZMvEb_Nxb2aLFmKGua4W9SFpkLawPtON2BAdBuW-r5G3ILPWrD9kqGy6KPmXR9_forB_YvVsIk3ThQxATEAnbGC_3065cjntEmvQ9AtSzfeRihsG1Tyf7zK2YUD9j5ArDIesWUn6_mGDrAC1TgY7WGw
com.google.android.gcm.server.Sender post: Sending POST to https://android.googleapis.com/gcm/send
com.google.android.gcm.server.Sender post: POST body: registration_id=APA91bH6KShZMvEb_Nxb2aLFmKGua4W9SFpkLawPtON2BAdBuW-r5G3ILPWrD9kqGy6KPmXR9_forB_YvVsIk3ThQxATEAnbGC_3065cjntEmvQ9AtSzfeRihsG1Tyf7zK2YUD9j5ArDIesWUn6_mGDrAC1TgY7WGw
com.joebutt.mouseworldgcm.SendMessageServlet sendSingleMessage: Exception posting Message() com.google.android.gcm.server.InvalidRequestException: HTTP Status Code: 401 at com.google.android.gcm.server.Sender.sendNoRetry(Sender.java:177) at com.joebutt.mouseworldgcm.SendMessageServlet.sendSingleMessage(SendMessageServlet.java:121) at com.joebutt.mouseworldgcm.SendMessageServlet.doPost(SendMessageServlet.java:103)