Android, how to update a textView in secondary activity from BroadcastReceiver.onReceive()?

Register another BroadcastReceiver in 2nd Activity and manage it's views there.

Thanks. I did just try it. It's a WiFiReceiver: should I unregister the main activity receiver before registering my secondary receiver?

I get this exception in logcat: "05-10 13:28:10.564: ERROR/ActivityThread(737): Activity koine.marcos.wifidemo. Positioning has leaked IntentReceiver koine.marcos.wifidemo. Positioning$WiFiScanReceiver@44ff30d8 that was originally registered here.

Are you missing a call to unregisterReceiver()? "? – MarcoS May 10 at 13:44 You should unregister every of your receivers in onPause or onStop, please read developer.android.Com/reference/android/content/… – ernazm May 10 at 14:16 Thanks, I di read it and solve the exception... ;-) – MarcoS May 10 at 15:02.

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). I always get a null value, even when the secondary activity (Positioning) is active.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions