Showing posts with label Android 6. Show all posts
Showing posts with label Android 6. Show all posts

Friday, December 18, 2015

Android Studio Development Essentials - Android 6 Edition

Android Studio Development Essentials - Android 6 Edition

Fully updated for Android 6, the goal of this book is to teach the skills necessary to develop Android based applications using the Android Studio Integrated Development Environment (IDE) and the Android 6 Software Development Kit (SDK).

Beginning with the basics, this book provides an outline of the steps necessary to set up an Android development and testing environment. An overview of Android Studio is included covering areas such as tool windows, the code editor and the Designer tool. An introduction to the architecture of Android is followed by an in-depth look at the design of Android applications and user interfaces using the Android Studio environment. More advanced topics such as database management, content providers and intents are also covered, as are touch screen handling, gesture recognition, camera access and the playback and recording of both video and audio. This edition of the book also covers printing, transitions and cloud-based file storage.

The concepts of material design are also covered in detail, including the use of floating action buttons, Snackbars, tabbed interfaces, card views, navigation drawers and collapsing toolbars.

In addition to covering general Android development techniques, the book also includes Google Play specific topics such as implementing maps using the Google Maps Android API, in-app billing and submitting apps to the Google Play Developer Console.

Chapters also cover advanced features of Android Studio such as Gradle build configuration and the implementation of build variants to target multiple Android device types from a single project code base.

Assuming you already have some Java programming experience, are ready to download Android Studio and the Android SDK, have access to a Windows, Mac or Linux system and ideas for some apps to develop, you are ready to get started.

Android 6 Essentials

Design, build, and create your own applications using the full range of features available in Android 6

Android 6 Essentials

About This Book
  • Learn how to utilize the robust features of Android 6 to design, develop, and publish better Android applications
  • Get useful guidance on creating new apps or migrating existing apps to support features such as app permissions, app links, fingerprint authentication, etc
  • A fast paced guide, packed with hands-on examples that ties all the features such as API, audio, video, camera, tab customization together under a single cover
Who This Book Is For
This book is for Android developers who are looking to move their applications into the next Android version with ease.

What You Will Learn
  • Familiarize yourself with the features of Android 6
  • Code with the new Android permissions model
  • Use apps auto backup and restore lost data automatically
  • Increase user engagement with apps through an assistant using triggers and providing contextual assistance
  • Assess and handle proper usage of the API
  • Work with Audio, Video,Camera in Android 6
  • Utilize the new features in Android for professional purposes
  • Understand and code Chrome's custom tabs
In Detail
Android 6 is the latest and greatest version of the Android operating system, and comes packed with cutting edge new features for you to harness for the benefit of building better applications.

This step-by-step guide will take you through the basics of the Android Marshmallow permissions model and beyond into other crucial areas such as the Audio,Video,Camera API and Android's at work features. Learn how to create, deploy, and manage Android applications with Marshmallow's API and the latest functionalities.

The combination of instructions and real-world examples will make your application deployment and testing a breeze.

Style and approach
This easy-to-follow, step-by-step tutorial provides explanations and examples to add the new Android 6 features to your skill set. Each chapter provides sequential steps and detailed information about the API, as well as best practices and testing options.

Sunday, November 15, 2015

Apache HTTP Client Removed from Android 6.0 release

Android 6.0 release removes support for the Apache HTTP client. If your app is using this client and targets Android 2.3 (API level 9) or higher, use the HttpURLConnection class instead. This API is more efficient because it reduces network use through transparent compression and response caching, and minimizes power consumption.

To continue using the Apache HTTP APIs, you must first declare the following compile-time dependency in your build.gradle file:

android {
    useLibrary 'org.apache.http.legacy'
}

Have to sync Gradle project after you insert the above code in build.gradle file.

Reference: Android 6.0 Changes - Apache HTTP Client Removal


Related examples of using Apache HTTP client and HttpURLConnection:
Android App to control Standalone ESP8266/ESP-12 on-board LED, using Android 6.0 removed HttpClient
Android App to control Standalone ESP8266/ESP-12 on-board LED, using HttpURLConnection


Friday, September 4, 2015

Developing for Android 6.0 Marshmallow



The Android M Developer Preview now includes the Final SDK and near final device images and emulators. This video covers how to get started with the preview, important APIs to test and how to provide feedback on the preview.

Monday, August 31, 2015

Install Android Studio on Windows 10

Android Studio IDE is the official Android development IDE.


Before install, check if your system meet the System Requirements.

In my system:
OS: Windows 10
Java: JDK 8 (Refer the Java-Buddy post "Install JDK 8 on Windows 10, and set Path")

To download Android Studio IDE, visit http://developer.android.com/sdk/index.html.

By default, the Setup Wizard will create a default AVD (Android Virtual Device) for you, Nexus 5 API 23 x86. (If you encounter error of "HAXM is not working and emulator runs in emulation mode" when run Android Emulator with HAXM, refer to the next post "Install Intel x86 Emulator Accelerator (HAXM), on Android Studio/Windows 10")



After installed, I always run SDK Manager to check if any update and install the suggested packages.


Next:
Install Intel x86 Emulator Accelerator (HAXM)



Create Marshmallow Emulator in Android Studio AVD Manager




Related:
- Download and run Android Studio 2.0 Preview on Windows 10