Beginning Android Programming with Android Studio
close menu
Bookswagon
search
My Account
Home > Computer programming / software engineering > Beginning Android Programming with Android Studio
Beginning Android Programming with Android Studio

Beginning Android Programming with Android Studio


     0     
5
4
3
2
1



Out of Stock


Notify me when this book is in stock
X
About the Book

A hands-on introduction to the latest release of the Android OS and the easiest Android tools for developers

As the dominant mobile platform today, the Android OS is a powerful and flexible platform for mobile device. The new Android 7 release (New York Cheesecake) boasts significant new features and enhancements for both smartphone and tablet applications. This step-by-step resource takes a hands-on approach to teaching you how to create Android applications for the latest OS and the newest devices, including both smartphones and tablets.

  • Shows you how to install, get started with, and use Android Studio 2 - the simplest Android developer tool ever for beginners
  • Addresses how to display notifications, create rich user interfaces, and use activities and intents
  • Reviews mastering views and menus and managing data
  • Discusses working with SMS 
  • Looks at packaging and publishing applications to the Android market

Beginning Android Programming with Android Studio starts with the basics and goes on to provide you with everything you need to know to begin to successfully develop your own Android applications.



Table of Contents:

Introduction xvii

Chapter 1: Getting Started with Android Programming 1

What Is Android? 2

Android Versions 2

Features of Android 3

Architecture of Android 4

Android Devices in the Market 4

The Android Market 7

Obtaining the Required Tools 8

Android Studio 8

Android SDK 14

Creating Android Virtual Devices (AVDs) 15

The Android Developer Community 24

Launching Your First Android Application 24

Summary 26

Chapter 2: Using Android Studio for Android Development 29

Exploring the IDE 30

Using Code Completion 38

Debugging Your Application 39

Setting Breakpoints 39

Navigating Paused Code 43

Publishing Your Application 44

Generating a Signed APK 44

Summary 45

Chapter 3: Activities, Fragments, and Intents 47

Understanding Activities 48

Applying Styles and Themes to an Activity 53

Hiding the Activity Title 54

Displaying a Dialog Window 56

Displaying a Progress Dialog 59

Linking Activities Using Intents 61

Returning Results from an Intent 66

Passing Data Using an Intent Object 70

Fragments 75

Adding Fragments Dynamically 81

Life Cycle of a Fragment 84

Interactions Between Fragments 88

Understanding the Intent Object 92

Using Intent Filters 93

Displaying Notifications 94

Summary 98

Chapter 4: Getting to Know the Android User Interface 101

Understanding the Components of a Screen 102

Views and ViewGroups 103

FrameLayout 104

LinearLayout (Horizontal) and LinearLayout (Vertical) 104

TableLayout 114

RelativeLayout 116

FrameLayout 117

ScrollView 121

Adapting to Display Orientation 124

Anchoring Views 125

Managing Changes to Screen Orientation 127

Persisting State Information During Changes in Configuration 131

Detecting Orientation Changes 132

Controlling the Orientation of the Activity 132

Utilizing the Action Bar 133

Adding Action Items to the Action Bar 136

Creating the User Interface Programmatically 142

Listening for UI Notifications 145

Summary 145

Chapter 5: Designing Your User Interface with Views 147

Using Basic Views 148

TextView View 148

Button, ImageButton, EditText, CheckBox, ToggleButton, RadioButton, and RadioGroup Views 149

ProgressBar View 158

AutoCompleteTextView View 164

Using Picker Views 167

TimePicker View 167

DatePicker View 172

Using List Views to Display Long Lists 175

ListView View 175

Using the Spinner View 184

Understanding Specialized Fragments 186

Using a ListFragment 187

Using a DialogFragment 191

Using a PreferenceFragment 194

Summary 199

Chapter 6: Displaying Pictures and Menus with Views 203

Using Image Views to Display Pictures 203

ImageView View 204

ImageSwitcher 206

GridView 211

Using Menus with Views 215

Creating the Helper Methods 215

Options Menu 217

Context Menu 220

Using WebView 225

WebView 225

Summary 228

Chapter 7: Data Persistence 231

Saving and Loading User Preferences 232

Accessing Preferences Using an Activity 232

Programmatically Retrieving and Modifying the Preferences Values 242

Persisting Data to Files 246

Saving to Internal Storage 246

Saving to External Storage (SD Card) 250

Choosing the Best Storage Option 253

Creating and Using Databases 254

Creating the DBAdapter Helper Class 254

Using the Database Programmatically 260

Summary 266

Chapter 8: Content Providers 269

Sharing Data in Android 270

Using a Content Provider 271

Predefined Query String Constants 278

Projections 279

Filtering 280

Sorting 280

Creating Your Own Content Providers 281

Using the Content Provider 289

Summary 294

Chapter 9: Messaging 297

SMS Messaging 298

Sending SMS Messages Programmatically 298

Sending SMS Messages Using Intent 302

Receiving SMS Messages 302

Caveats and Warnings 318

Sending Email 319

Summary 322

Chapter 10: Location-based Services 325

Displaying Maps 326

Creating the Project 326

Obtaining the Maps API Key 326

Displaying the Map 327

Displaying the Zoom Control 329

Changing Views 332

Navigating to a Specific Location 333

Getting the Location That Was Touched 335

Geocoding and Reverse Geocoding 337

Getting Location Data 340

Monitoring a Location 348

Summary 348

Chapter 11: Networking 351

Consuming Web Services Using HTTP 352

Downloading Binary Data 354

Downloading Text Content 361

Accessing Web Services Using the GET Method 364

Consuming JSON Services 370

Summary 377

Chapter 12: Developing Android Services 381

Creating Your Own Services 382

Performing Long-Running Tasks in a Service 386

Performing Repeated Tasks in a Service 391

Executing Asynchronous Tasks on Separate Threads Using IntentService 394

Establishing Communication Between a Service and an Activity 397

Binding Activities to Services 401

Understanding Threading 406

Summary 411

Appendix: Answers to Exercises 415

Index 421



About the Author :

J. F. DiMarzio began developing games in BASIC on the TRS-80 Color Computer II in 1984. Today he is a seasoned Android developer with two professional applications and one game on the Android Marketplace, and an industry track record with major organizations including the U.S. Department of Defense and the Walt Disney Company. An accomplished author, he has written 13 books over the past 14 years.
Visit us at wrox.com where you have access to free code samples, Programmer to Programmer forums, and discussions on the latest happenings in the industry from around the world.


Best Sellers


Product Details
  • ISBN-13: 9781119196099
  • Publisher: John Wiley & Sons Inc
  • Publisher Imprint: Standards Information Network
  • Edition: Revised edition
  • No of Pages: 464
  • ISBN-10: 1119196094
  • Publisher Date: 06 Oct 2016
  • Binding: Digital (delivered electronically)
  • Language: English


Similar Products

Add Photo
Add Photo

Customer Reviews

REVIEWS      0     
Click Here To Be The First to Review this Product
Beginning Android Programming with Android Studio
John Wiley & Sons Inc -
Beginning Android Programming with Android Studio
Writing guidlines
We want to publish your review, so please:
  • keep your review on the product. Review's that defame author's character will be rejected.
  • Keep your review focused on the product.
  • Avoid writing about customer service. contact us instead if you have issue requiring immediate attention.
  • Refrain from mentioning competitors or the specific price you paid for the product.
  • Do not include any personally identifiable information, such as full names.

Beginning Android Programming with Android Studio

Required fields are marked with *

Review Title*
Review
    Add Photo Add up to 6 photos
    Would you recommend this product to a friend?
    Tag this Book Read more
    Does your review contain spoilers?
    What type of reader best describes you?
    I agree to the terms & conditions
    You may receive emails regarding this submission. Any emails will include the ability to opt-out of future communications.

    CUSTOMER RATINGS AND REVIEWS AND QUESTIONS AND ANSWERS TERMS OF USE

    These Terms of Use govern your conduct associated with the Customer Ratings and Reviews and/or Questions and Answers service offered by Bookswagon (the "CRR Service").


    By submitting any content to Bookswagon, you guarantee that:
    • You are the sole author and owner of the intellectual property rights in the content;
    • All "moral rights" that you may have in such content have been voluntarily waived by you;
    • All content that you post is accurate;
    • You are at least 13 years old;
    • Use of the content you supply does not violate these Terms of Use and will not cause injury to any person or entity.
    You further agree that you may not submit any content:
    • That is known by you to be false, inaccurate or misleading;
    • That infringes any third party's copyright, patent, trademark, trade secret or other proprietary rights or rights of publicity or privacy;
    • That violates any law, statute, ordinance or regulation (including, but not limited to, those governing, consumer protection, unfair competition, anti-discrimination or false advertising);
    • That is, or may reasonably be considered to be, defamatory, libelous, hateful, racially or religiously biased or offensive, unlawfully threatening or unlawfully harassing to any individual, partnership or corporation;
    • For which you were compensated or granted any consideration by any unapproved third party;
    • That includes any information that references other websites, addresses, email addresses, contact information or phone numbers;
    • That contains any computer viruses, worms or other potentially damaging computer programs or files.
    You agree to indemnify and hold Bookswagon (and its officers, directors, agents, subsidiaries, joint ventures, employees and third-party service providers, including but not limited to Bazaarvoice, Inc.), harmless from all claims, demands, and damages (actual and consequential) of every kind and nature, known and unknown including reasonable attorneys' fees, arising out of a breach of your representations and warranties set forth above, or your violation of any law or the rights of a third party.


    For any content that you submit, you grant Bookswagon a perpetual, irrevocable, royalty-free, transferable right and license to use, copy, modify, delete in its entirety, adapt, publish, translate, create derivative works from and/or sell, transfer, and/or distribute such content and/or incorporate such content into any form, medium or technology throughout the world without compensation to you. Additionally,  Bookswagon may transfer or share any personal information that you submit with its third-party service providers, including but not limited to Bazaarvoice, Inc. in accordance with  Privacy Policy


    All content that you submit may be used at Bookswagon's sole discretion. Bookswagon reserves the right to change, condense, withhold publication, remove or delete any content on Bookswagon's website that Bookswagon deems, in its sole discretion, to violate the content guidelines or any other provision of these Terms of Use.  Bookswagon does not guarantee that you will have any recourse through Bookswagon to edit or delete any content you have submitted. Ratings and written comments are generally posted within two to four business days. However, Bookswagon reserves the right to remove or to refuse to post any submission to the extent authorized by law. You acknowledge that you, not Bookswagon, are responsible for the contents of your submission. None of the content that you submit shall be subject to any obligation of confidence on the part of Bookswagon, its agents, subsidiaries, affiliates, partners or third party service providers (including but not limited to Bazaarvoice, Inc.)and their respective directors, officers and employees.

    Accept

    Fresh on the Shelf


    Inspired by your browsing history


    Your review has been submitted!

    You've already reviewed this product!
    Your IP: 216.73.216.193 IN