5.1 Override the onReceive method in the EarthquakeWidget class by adding a check for the QUAKES_REFRESHED action you broadcast in step 7.1 — calling updateQuakes when it’s received. Be sure to call through to the superclass to ensure that the standard Widget event handlers are still triggered:5.2 Add an Intent Filter for this Intent action to the Widget’s manifest entry:. As a final step, add some interactivity to the Widget. Return to the onUpdate handler, and add a Click Listener to both the Text Views. Clicking the Widget should open the main Activity.
đang được dịch, vui lòng đợi..
