Android Application Development Cookbook: 93 Recipes for Building Winning Apps

Front Cover
John Wiley & Sons, Jan 4, 2013 - Computers - 408 pages
0 Reviews
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 discovering...solutions!

  

What people are saying - Write a review

We haven't found any reviews in the usual places.

Contents

1 Linking Activities 1
1
USING VIEWS TO DESIGN THE USER INTERFACE
39
DISPLAYING LISTS OF ITEMS AND IMAGES
105
6 Displaying a List of Items Using the Spinner View
125
TELEPHONY
151
MESSAGING
175
xii
191
3 Downloading Binary Data Using HTTP
198
USING GOOGLE MAPS
243
3 Changing Map Modes
253
LOCATIONBASED DATA SERVICES
279
3 Monitoring a Location
288
ACCESSING THE HARDWARE
301
7 Capturing Barcodes
319
PERSISTING DATA
325
xiv
345

5 Consuming JSON Web Services
204
6 Getting the IP Address of the Device
210
8 Creating a Socket Client
218
10 Monitoring the State of Bluetooth
224
DEPLOYING YOUR ANDROID APPLICATIONS
357
6 Specifying the Application Installation Location
370
Copyright

Common terms and phrases

Android application Android device Android Versions Level android:layout_height="match_parent android:layout_height="wrap_content android:layout_width="match_parent android:layout_width="wrap_content android:orientation="vertical android.view.View Barack Obama Bluetooth BluetoothAdapter broadcast BroadcastReceiver catch IOException checkbox class MainActivity extends Code to Download context create DESIGN THE USER display Download from Wrox.com e.getLocalizedMessage File final String first folder following code snippet George H. W. Bush Gerald Ford Google Maps ImageView import android import android.app.Activity import android.content.Context import android.content.Intent import android.os.Bundle import android.widget.Toast import import import InputStream Intent object intent—filter java java file JSON layout_height="wrap_content LinearLayout xmlns:android="http://schemas.android.com/apk/res/android LISTS OF ITEMS ListView LocationManager MainActivity extends Activity MapView menu method null OverlayItem Override public void package PendingIntent Permissions None Source phone number programmatically public class MainActivity public void onCreate(Bundle recipe shows RelativeLayout Richard Nixon setContentView(R.layout.activity_main SMS message Solution Source Code specified super.onCreate(savedInstanceState TextView Toast.LENGTH_LONG).show Toast.LENGTH_SHORT).show Toast.makeText(context Toast.makeText(getBaseContext Toast.makeText(this USER INTERFACE uses-permission VIEWS TO DESIGN void onCreate(Bundle savedInstanceState web service WebView Wi-Fi Zoom

About the author (2013)

Wei-Meng Lee is the founder of Developer Learning Solutions (www.learn2develop.net), a technology company specializing in hands-on training in the latest Microsoft and Apple technologies. He writes extensively for online publications and is also the author of Beginning Android 4 Application Development and Beginning iOS 5 Application Development.

Wrox guides are crafted to make learning programming languages and technologies easier than you think. Written by programmers for programmers, they provide a structured, tutorial format that will guide you through all the techniques involved.

Bibliographic information