Back to project page WhereIParked.
The source code is released under:
GNU General Public License
If you think the Android project WhereIParked listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.cachirulop.whereiparked.broadcast; //from w w w. j ava2 s .c o m import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import com.cachirulop.whereiparked.activity.MainActivity; import com.cachirulop.whereiparked.common.Message; public class ConnectivityBroadcastReceiver extends BroadcastReceiver { MainActivity _parent; public ConnectivityBroadcastReceiver (MainActivity parent) { _parent = parent; } @Override public void onReceive (Context context, Intent intent) { String action; action = intent.getAction (); Message.showMessage ("Connection state change: action: " + action); _parent.updateMapMode (); } }