sendBroadcast() is part of the Context class.
--
Jack Ha
Open Source Development Center
・T・ ・ ・Mobile・ stick together
The coverage you need at the price you want
The views, opinions and statements in this email are those of
the author solely in their individual capacity, and do not
necessarily
I saw that in the reference docs, but I still can't figure out how to
make use of it.
Just referencing Context doesn't work:
Context.sendBroadcast(intent);
compile:
[javac] Compiling 2 source files to /Users/SourceCode/android/
projects/AutoConference/bin/classes
[javac]
So I am slowly learning more about the life cycles, and I figured out
what I was missing. I ended up passing the context to the
PhoneListener class I made in construction:
public class PhoneBroadcaster extends BroadcastReceiver {
public void onReceive(Context context, Intent intent)
{
3 matches
Mail list logo