Android Application Development Cookbook: 93 Recipes for Building Winning Apps

Android Application Development Cookbook: 93 Recipes for Building Winning Apps

Wei-Meng Lee

Language: English

Pages: 408

ISBN: 1118177673

Format: PDF / Kindle (mobi) / ePub

A must-have collection of ready-to-use Android recipes!

The popularity of Google Android devices is seemingly unstoppable and the Android 4 release offers, for the first time, a single OS solution for building both phone and tablet applications. With that exciting information in mind, veteran author Wei-Meng Lee presents you with 100 unique recipes that you can apply today in order to discover solutions to some of the most commonly encountered problems that exist in Android programming.

Covering the scope of multiple Android releases up through Android 4, this reference features a task description, followed by the solution(s) available, and a standalone project file that illustrates the use of the recipe. Formatting each recipe to be standalone, Wei-Meng Lee allows you to jump into the relevant recipe to find a solution to specific challenges.

  • Identifies and describes a programming task, provides a step-by-step solution, and presents a full-code solution ready for download
  • Covers multiple Android releases
  • Addresses such topics as user interfaces, telephony and messaging, networking, Google maps, location-based services, persisting data, leveraging hardware features, and more

Android Application Development Cookbook is your solution to!

The Agrarian Question in the Neoliberal Era: Primitive Accumulation and the Peasantry

Programming in Go: Creating Applications for the 21st Century (Developer's Library)

Backbone.js Patterns and Best Practices

Creating Walkable Places



















software field at Borland where he was a Senior Developer Support Engineer for Delphi. Outside of computer geek stuff, Chaim enjoys techno and dubstep music, and scootering with his two sled dogs Dasher and Minnie. Credits Executive Editor Production Manager Robert Elliott Tim Tate Senior Project Editor Vice President and Executive Group Publisher Ami Frank Sullivan Richard Swadley Technical Editor Chaim Krause Vice President and Executive Publisher Neil Edde Production Editor

android.os.Bundle; android.view.View; android.widget.CheckBox; android.widget.Toast; public class MainActivity extends Activity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); Figure 2-7 Recipe 2.4  Using CheckBoxes  //---CheckBox--CheckBox checkBox = (CheckBox) findViewById(; checkBox.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { if

Eisenhower", "John F. Kennedy", "Lyndon B. Johnson", "Richard Nixon", "Gerald Ford", "Jimmy Carter", "Ronald Reagan", "George H. W. Bush", "Bill Clinton", "George W. Bush", "Barack Obama" }; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); //---List View--setListAdapter(new ArrayAdapter(this, android.R.layout.simple_list_item_1, presidents)); } public void onListItemClick(ListView parent, View v, int

ImageView.ScaleType.CENTER_CROP); imageView.setPadding(5, 5, 5, 5); } else { imageView = (ImageView) convertView; } imageView.setImageResource(imageIDs[position]); return imageView; } } } As in the previous recipe, you create the ImageAdapter class (which extends the BaseAdapter class) so that it can bind to the GridView with a series of ImageView views. When you run the application, you will see the GridView as shown in Figure 3-22. Recipe 3.10   Building a Master-Detail User Interface

company specializing in hands-on training on the latest mobile technologies. Wei-Meng has many years of training experience and his courses place special emphasis on the learning-by-doing approach. This hands-on approach to learning programming makes understanding the subject much easier than reading books, tutorials, and other documentation. Wei-Meng is also the author of Beginning iOS 5 Application Development (Wrox, 2010) and Beginning Android 4 Application Development (Wrox, 2011). You can

Download sample