The activities in this book will have you create two reasonably complex Android applications: a restaurant database and a microblogging client. Each activity consists of a list of detailed steps for adding various features and capabilities. There isn’t much theory offered; instead, the emphasis is on having you “learn by doing.” This book is intended for those who enjoy delving into coding but need direction. Instead of providing single examples as a programming manual could, the tutorials want to introduce you to a wide range of Android features in the context of a bigger application. Each exercise includes suggestions for additional reading as well as “extra credit” activities you might want to try to expand your knowledge beyond what the step-by-step instructions provide. Using many of the concepts described in CommonsWare’s previous Android publications, Android Programming Tutorials teaches you step-by-step how to create complex Android applications. If you run into trouble, the complete source code for each exercise answer is available to you. A great complement to more conventional Android books that only outline what is possible is Android Programming Tutorials. The exercises take you from the fundamentals of developing Android applications all the way to lots of entertaining Android capabilities, like web access, location tracking, maps, built-in WebKit browsers, cameras, accelerometers, home screen widgets, and much more. These tutorials cover a wide range of important topics related to creating Android applications, such as setting up simple user interfaces using fields, buttons, lists, tabs, and radio buttons. adding menu options. Providing unique user interfaces for both portrait and landscape orientations. local databases for data storage. How to gather user choices and implement those desires
utilising background threads. having connected screens on one application with many screens. How to access a web service’s API by writing your own HTTP client code or using already-written JARs from third parties. How to set up Android components that are independent of their graphical user interfaces, such as enabling a service in one app to support clients in another. creating status bar icons. including Google Maps and location tracking. embedding the Web browser WebKit. How to incorporate playback of videos. We’re animating our user interface such that certain elements can appear or disappear in response to user requests. Developing “app widgets” bits of our user interface that may be added to the user’s home screen as well as integrating with the accelerometer and camera. I hope you enjoy and find this book to be useful.

Topics covered by this book: 

  • Chapter 1 is about Your First Android Project. Create the New Project, Eclipse,  Command Line , Build, Install, and Run the Application in Your Emulator or Device, Eclipse and Command Line

  • Chapter 2 is about A Simple Form, Generate the Application Skeleton, Modify the Layout, Support All Screen Sizes, Compile and Install the Application, Run the Application in the Emulator and Save the Form to the Model.

  • Chapter 3  is about Fancier Form.  Switch to a TableLayout,Add a RadioGroup, Update the Model and Save the Type to the Model.

  • Chapter 4 is about Adding a List. Hold a List of Restaurants, Save Adds to List, Implement toString(), Add a ListView Widget and Build and Attach the Adapter.

  • Chapter 5 is about Making Our List Be Fancy. Create a Stub Custom Adapter, Design Our Row, Override getView(), Create a Restaurant Holder and Recycle Rows via Restaurant Holder.

  • Chapter 6 is about Splitting the Tab. Rework the Layout, Wire In the Tabs, Get Control On List Events, Update Our Restaurant Form On Clicks and Switch Tabs On Clicks.