Book Image

Learning Android Intents

By : Muhammad Usama bin Aftab, Wajahat Karim
Book Image

Learning Android Intents

By: Muhammad Usama bin Aftab, Wajahat Karim

Overview of this book

<p>Android is an emerging technology with loads of apps in the Google Play Market. Till date, it is the biggest marvel in Smartphone technology, propelling a larger number of developers into Android application development. Intent is an essential part of any Android Application and no Android application is complete without using them. Features such as listening broadcasts, sending messages, sharing via social networks, notifications, hardware components including camera, sensors, Wi-Fi, and more, can be used in your applications by using Intents.</p> <p>This practical guide focuses on using intents to make the best use of various features of Android platform. It is ideal for those developers who want to understand the backbone and the domain of Android Intents, its power, and the need for it inside an Android application. Practical, in-depth examples are used throughout the book, to help you understand the key concepts.</p> <p>The book starts with introducing the very basic concepts of Android, and its various facts and figures such as different Android versions, their release dates, evolution of Android phones and so on. While covering the basic technical concepts, it proceeds from the easiest route of introducing Android Intents towards the more practical view of Android Intents in terms of components and features.</p> <p>You will learn how to use different components and features such as transfer data between activities, invoke various features and components of Android, execute different in-built and custom-made services, use hardware and software components of Android device, and start Pending Intents &amp; notifications. You will gain better theoretical knowledge of what is running behind the concepts of Android Intents, and practical knowledge of the mobile-efficient ways to perform a certain task using Android Intents.</p> <p>Towards the end, you will have a clear vision and a practical grip on Android intents and its features. Learning Android Intents is a proper guide to give you the best knowledge of Intents.</p>
Table of Contents (16 chapters)
Learning Android Intents
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Introducing Android


Android is a Linux-based operating system which makes it an open source software. Google distributed its license under the Apache License Agreement. The availability of Android code makes it an easily-modifiable operating system, which can be customized by the vendor as well. Due to a highly flexible design, some critics call it unsecure, which was right at a certain period of time, but now, Android is a mature operating system with a high-level secure architecture. It is said that the newest version of Android (that is, Jelly Bean) is the most secure operating system that Google has ever produced. Let's move forward with an overview of the different versions of the Android OS.

Exploring the different versions of Android

Since the beginning, Android has been transforming itself with the release of different versions. Not just UI but many features were added, modified, and enhanced in each upcoming version. The first version to officially use the name of a dessert was Android Cupcake 1.5, which was based on Linux 2.6.27. Every new Android version comes with a new set of API levels, which basically revises the previous API with some modification, obsoleteness, and addition of new controls.

Releasing new versions of Android brings some obsoleteness in the previous methods/functions from a developer's point of view. However, this will bring warnings but not errors; you can still use previous method calls in new API Levels as well.

The following table shows the different Android versions with their API Levels and major highlights:

Android version

Version name

Main features

API level

Release date

Android 4.1/4.2/4.3

Jelly Bean

Google Now

Voice-to-search

Lock screen widgets

Speed enhancements

Gesture typing in keyboard

Secure USB debugging (for developers only)

OpenGLES 3.0 support

Improved camera user interface

Right-to-left languages support

16, 17, and 18

July 9, 2012, November 13, 2012, and July 24, 2013

Android 4.0

Ice Cream Sandwich

Major UI changes

Enhanced lock screen actions

Screen orientation animation

Email app with EAS v14

Facial unlock

Enhanced web browser

Support of tablet and cell phones

14 and 15

October 19, 2011

Android 3.x

Honeycomb

First OS for tablets

Addition of system bar and action bar

Quick access to camera and its features

Two pane email UI view

Multi-core support

11, 12, and 13

February 22, 2011

Android 2.3

GingerBread

Enhanced UI

Native VoIP/SIP support

Google Talk and Google Wallet

Video call support

9 and 10

December 6, 2010

Android 2.2

Froyo

Speed improvements

USB tethering

JIT implementation

8

May 20, 2010

Android 2.0/2.1

Eclair

Updated UI

Live wallpaper

Bluetooth 2.1

5, 6, and 7

January 12, 2010

Android 1.6

Donut

Gesture recognition

4

September 15, 2009

Android 1.5

Cupcake

Text prediction in keyboard

Record and watch videos

3

April 30, 2009

Note

It is an interesting fact that the versions of Android are in alphabetical order. Starting off from Apple Pie 1.0 and then Banana Bread 1.1, it made its way towards Jelly Bean with a complete coherence of alphabetical sequence, and by maintaining the legacy; the next version expected will be Key Lime Pie.

As it is mentioned earlier that Android is open for modifications by the vendor due to its open-sourced nature, many famous mobile manufacturers put their own customized versions of Android in their phones. For example, Samsung made a custom touch interface over Android and calls it TouchWiz (Samsung Galaxy S4 comes with TouchWiz Nature UX 2.0). Similarly, HTC and Sony Xperia came up with their own custom user interface and called it HTC Sense and TimeScape respectively.

Google Play – the official app store for Android

Just like any other famous mobile operating systems, Android has its app store known as Google Play. Previously, the app store was called Android Market, which, at the start of the year 2012, became Google Play with a new-and-improved user experience. The update unified the whole entertainment world under the umbrella of Google Play. Music, apps, books, and movies, all became easily accessible to the users just like Apple's famous App Store (iTunes). You can find detailed information about the Android store at http://play.google.com/about/.

Note

Google Movies & TV, Google Music, Google Books, and Google Magazines are only available in limited countries.

Google Play provides a wide range of applications, movies, e-books, and music. Recently, they also introduced the Google Play TV facility under the same app store. Talking about the application side, Google Play provides different categories in which a user can select applications. It ranges from games to comics and social apps. Users can enjoy many paid applications and can unlock many features by in-app billing services provided by Google Play.

There are different vendor specific app stores as well, such as Kindle's Amazon App Store, Nook Store, and many others that provide many applications under their own terms and conditions.