Changes

Creating an Example Java Android App in Android Studio

685 bytes added, 19:22, 4 January 2019
no edit summary
 
The preceding chapters of this book have covered the steps necessary to configure an environment suitable for the development of Android applications using the Android Studio IDE. Before moving on to slightly more advanced topics, now is a good time to validate that all of the required development packages are installed and functioning correctly. The best way to achieve this goal is to create an Android application and compile and run it. This chapter will cover the creation of a simple Android application project using Android Studio. Once the project has been created, a later chapter will explore the use of the Android emulator environment to perform a test run of the application.
== About About the Project ==
The project created in this chapter takes the form of a very simple currency conversion calculator (so simple, in fact, that it only converts from dollars to euros and does so using an estimated conversion rate). The project will also make use of the most basic of Android Studio project templates. This simplicity allows us to introduce some of the key aspects of Android app development without overwhelming the beginner by trying to introduce too many concepts, such as the recommended app architecture and Android architecture components, at once. When following the tutorial in this chapter, rest assured that all of the techniques and code used in this initial example project will be covered in much greater detail in later chapters.
[[Image:android_studio_3.2.1_welcome.png]]
[[Image:as_3.0_new_project.png]]
[[Image:as_3.0_new_project_basic_activity.png]]
[[Image:as_3.0_new_project_configure_activity.png]]
[[Image:as_3.2_sample_main_window.png]]
[[Image:as_3.2_project_tool_menu.png]]
[[Image:as_3.0_new_helloworld.png.png]]
[[Image:as_3.0_new_project_content_layout.png]]
[[Image:as_3.2_sample_layout_editor.png]]
[[Image:as_3.0_component_tree.png]]
[[Image:as_3.0_disable_auto_connect.png]]
[[Image:as_3.2_button_in_palette.png]]
[[Image:as_3.2_android_sample_button_added.png]]
[[Image:as_3.2_android_sample_button_text.png]]
[[Image:as_3.2_android_sample_infer_constraints.png]]
[[Image:as_3.2_android_sample_layout_warnings.png]]
[[Image:as_3.0_layout_editor_warnings_panel.png]]
[[Image:as_3.2_android_sample_extract_layout.png]]
[[Image:as_3.2_android_sample_ui.png]]
[[Image:as_3.2_android_sample_set_id.png]]
[[Image:as_3.2_android_sample_layout_xml.png]]
[[Image:as_3.2_android_sample_translation_editor.png]]
[[Image:as_3.2_android_sample_onclick.png]]