As I understand it from a previous post and behavior I have seen in my
application under certain instances Android will spawn a new process
for a BroadcastReceiver onReceive. If this is true I have a couple of
questions:
1) If I create the BroadcastReceiver as:
private BroadcastReceiver mBroadcastReceiver;
private Runnable mRunnable;
void xyz() {
mBroadcastReceiver = new BroadcastReceiver() {
@Override
public void onReceive(Context, Intent intent) {
mRunnable.run();
}
};
}
if the onReceive is called in a new process can I reference objects/
memory in the onReceive that was associated with the object that
created the BroadcastReceiver. In this example can i reference
mRunnable?
2) If the answer to question #1 is yes can I call the mRunnable.run()
as in the example above and have a thread be run even though its in
another process?
--
You received this message because you are subscribed to the Google
Groups "Android Developers" 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-developers?hl=en