added handlers in MyBroadcastReceiver.java to deal with different broadcasts