Reputation: 17711
I have an Activity class (WiFiTest), inside which I have defined a private class (WiFiScanReceiver) which extends BroadcastReceiver. In the onReceive() method of WiFiScanReceiver I would like to update a widget (position TextView) defined in a secondary activity (Positioning).
When I try to retrive the position
TextView (
position = (TextView) findViewById(R.id.position);
),
I always get a null value, even when the secondary activity (Positioning) is active.
Any Hints?
Upvotes: 0
Views: 487
Reputation: 9258
Register another BroadcastReceiver
in 2nd Activity
and manage it's views there.
Upvotes: 1