Changes

Creating an Android 6 User Interface in Java Code

31 bytes added, 20:53, 5 January 2016
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: