Android: Updating UI using Handler
问题 I implemented an Android Application that consists of four activity (A,B,C,D). A calls B; B calls C and C calls D. The activity A implements a Handler Handler handler=new Handler(){ public void handleMessage(Message msg){ Bundle bundle = new Bundle(); bundle = msg.getData(); String key = bundle.getString("Changed"); if(key.compareTo("NotificationType") == 0){ String completeStr = bundle.getString(key); if(completeStr.compareTo("Message") == 0) { // update UI of Activity A } } } }; The