Changes

Jump to: navigation, search
m
Text replacement - "<google>BUY_ANDROID</google>" to "<htmlet>androidstudio</htmlet>"
<googlehtmlet>BUY_ANDROIDandroidstudio</googlehtmlet>
Locate and load the fragment_service_example.xml file in the Package Explorer panel (res -> layout -> fragment_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.
<googlehtmlet>BUY_ANDROIDandroidstudio</googlehtmlet>
Finally, right click on the button again, select Other Properties -> All by Name -> OnClick and assign a method named buttonClick to the value.
<googlehtmlet>BUY_ANDROIDandroidstudio</googlehtmlet>

Navigation menu