34,333
edits
Changes
→Adding Views to an Activity
Button myButton = new Button(this);
</pre>
<google>ADSDAQBOX_FLOW</google>
Once the above additions have been made, compile and run the application (either on a physical device or an emulator). Once launched, the visible result will be a button containing no text appearing in the top left hand corner of the RelativeLayout view as shown in Figure 17-1: