Update Activity text area from c2dm event listener
<p>I want to update a layout element (TextArea) whenever a c2dm event is triggered, how can I get the view from the event listener?</p>

<p>Event listener, the 2 lines of interest are under the Message handling, update text area comment</p>

<pre><code>public class C2DMMessageReceiver extends BroadcastReceiver {
        @Override
                public void onReceive(Context context, Intent intent) {
                    String action = intent.getAction();
                    Log.w("C2DM", "Message Receiver called");
                    if ("com.google.android.c2dm.intent.RECEIVE".equals(action)) {
                        Log.w("C2DM", "Received message");
                        final String payload = intent.getStringExtra("payload");
                        Log.d("C2DM", "dmControl: payload = " + payload);

                        // Message handling, update text area
                        if(payload.equals("DataUpdate")) {
                         t=(TextView) context.findViewById(R.id.gameConsoleText); 
    t.setText("evt rcvd!");
                        }
                    }
                }
    }
</code></pre>

<p>This line has the error, I can't get findViewByID from context</p>

<pre><code> t=(TextView) context.findViewById(R.id.gameConsoleText); 
</code></pre>

<p>Any thoughts? Thanks</p>
