Last edited:
You cannot use a msgbox in a service. Msgbox can only be used in Activities. However,you can use a process global variable to assign the pushed message value to it and then display a msgbox in the activity, showing the value of the variable.Hi Erel,
I have another question with the push notification, in the pushservice program, instead of using the toastmessageshow, is it possible to use a msgbox to display the message instead? I have tried changing it to a msgbox but it comes up with the following error:
android.view.WindowManager$BadTokenException: Unable to add window — token null is not for an application
Looks like it is because of the dialog box, is it because the pushservice is running in the background?
Thanks
No worries mate. I am sort-of newbie as well. Just shared what I have learnt. Good luck.Thanks Salmander. I will give it a try, I am still a newbie to this software.
i have downloaded your file and tried to run it, it came back with a google permission error when i tried to register. When you register c2dm with google, did you get an email from google?