Hi,

Is it possible to call a method that finds a view by id and changes
it, from a broadcast receiver?

For example:
I have the default class that extends Activity and contains a
setContentView method. In the layout i have set as the contentView, i
have a TextView. Then i have a method that should change the text to
something, but this should be called from a broadcast receiver and not
in the default class. But when the broadcast receiver-class extends
BroadcastReceiver it cannot use the findViewById method because it
requires the class to extend the Activiy class.

I have tried to initialize the default class, but then the application
stops unexpectedly when the broadcast receiver is called.

How can i call the method?

//Kaloer
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to