Skip to content Skip to sidebar Skip to footer

Error Receiving Broadcastreceiver Messages

I have a BroadcastReceiver, implemented in an Activity Class, which accepts incoming messages via Google Cloud Message. I want to use this class as a chat, so after i have incomin

Solution 1:

In Chatpat you have chatinput.add(name); but chatInput is declared as
ArrayList<String> chatinput = null; and it is not instantiate anywhere in your activity. you should declare it as ArrayList<String> chatinput = new ArrayList<String>();


Post a Comment for "Error Receiving Broadcastreceiver Messages"