Changes

Jump to: navigation, search
Modifying the User Interface
Locate and load the activity_service_example.xml file in the Package Explorer panel (res -> layout -> activity_service_example.xml). Right-click on the TextView and select the Change Widget Type menu option. In the resulting dialog, change the TextView to a Button view and click on OK. Right click on the new button, select Edit Text… and create a new string resource named button_text with a string that reads Start Service.
 
<google>BUY_ANDROID</google>
Finally, right click on the button again, select Other Properties -> All by Name -> OnClick and assign a method named buttonClick to the value.

Navigation menu