Cover image for Learning Android Intents.
Learning Android Intents.
Title:
Learning Android Intents.
Author:
Aftab, Muhammad Usama bin.
ISBN:
9781783289646
Personal Author:
Physical Description:
1 online resource (349 pages)
Contents:
Learning Android Intents -- Table of Contents -- Learning Android Intents -- Credits -- About the Authors -- About the Reviewers -- www.PacktPub.com -- Support files, eBooks, discount offers and more -- Why Subscribe? -- Free Access for Packt account holders -- Preface -- What this book covers -- What you need for this book -- Who this book is for -- Conventions -- Reader feedback -- Customer support -- Downloading the example code -- Errata -- Piracy -- Questions -- 1. Understanding Android -- Introducing Android -- Exploring the different versions of Android -- Google Play - the official app store for Android -- Understanding the whys and whens of Android -- The evolution of Android OS -- Official IDE from Google - the Android Studio -- Features of Android Studio -- Limitations of Android Studio -- Building blocks of an Android application -- Coding components -- Media components -- The assets folder -- The res folder -- XML components -- The layout folder -- The menu folder -- The values folder -- AndroidManifest.xml -- Referencing components -- Library components -- Android Activity lifecycle -- Fundamental states of an activity -- The callback methods of the Activity lifecycle -- The activity lifecycle flow -- Summary -- 2. Introduction to Android Intents -- Role of intents in an Android Application -- Role of intents in Android Activities -- Role of intents in data transfer between activities -- Role of intents in Wi-Fi and Bluetooth transfer -- Role of intents in Android Camera -- Role of intents in GPS Sensor -- Role of intents in sending SMS/MMS -- Role of intents in Mobile Calls -- Role of intents in e-mail and social network posts -- Role of intents in Android Services -- Role of intent in Broadcast Receiver -- Role of intent in time zones -- Role of intent in Status Bar -- Intent - a technical overview -- The Coding component.

The XML component -- Implementation of Android Intents for Activity Navigation -- Understanding the flow -- Part one - MainActivity.java -- Part two - MySecondActivity.java -- Part three - activity_main.xml -- Part four - activity_two_layout.xml -- Part five - AndroidManifest.xml -- Future considerations -- Other constructors of the android.content.Intent class -- Intent() -- Intent(intent o) -- Intent(Context c, Class cls) -- Intent(String action) -- Intent(String action, URI uri) -- Getting results from Android Intents -- Understanding with an example -- Going deep into the example -- Explaining the code -- Part one - MainActivity.java -- Part two - MySecondActivity.java -- Part three - activity_main.xml -- Part four - activity_two_layout.xml -- Part five - AndroidManifest.xml -- Future considerations -- Structure of an intent -- Component -- Actions -- Data -- Extras -- Summary -- 3. Intent and Its Categorization -- Explicit intents -- Using explicit intents in an Android application -- Starting an activity through an explicit intent -- The MainActivity.java class -- The SecondActivity.java class -- The activity_main.xml file -- The activity_main2.xml file -- The AndroidManifest.xml file -- Starting a service through an explicit intent -- The ServiceExample.java class -- The ServiceDemoActivity.java class -- The activity_main.xml file -- The AndroidManifest.xml file -- Implicit intents -- Using implicit intents in an Android application -- Sharing content using implicit intents -- The activity_main.xml file -- The MainActivity.java class -- Registering your app for the share intent -- The activity_main.xml file -- The MainActivity.java class -- The AndroidManifest.xml file -- Selecting an image through an implicit intent -- The activity_main.xml file -- The MainActivity.java class -- Intents and Android late binding -- Summary.

4. Intents for Mobile Components -- Common mobile components -- The Wi-Fi component -- The Bluetooth component -- The Cellular component -- Global Positioning System (GPS) and geo-location -- The Geomagnetic field component -- Sensor components -- Motion sensors -- Position sensors -- Environmental sensors -- Components and intents -- Communication components -- Using Bluetooth through intents -- Some Bluetooth API classes -- BluetoothDevice -- BluetoothAdapter -- Turning on the Bluetooth app -- The MainActivity.java file -- The AndroidManifest.xml file -- Tracking the Bluetooth adapter state -- The MainActivity.java file -- The BluetoothStateReceiver.java file -- Being discoverable -- Monitoring the discoverability modes -- Communication via Bluetooth -- Using Wi-Fi through intents -- Checking the Internet connectivity status -- The NetworkStatusReceiver.java file -- The AndroidManifest.xml file -- Opening the Wi-Fi Settings app -- The activity_main.xml file -- The MainActivity.java file -- Media components -- Using intents to take pictures -- The activity_main.xml file -- The MainActivity.java file -- The AndroidManifest.xml file -- Using intents to record video -- Speech recognition using intents -- The activity_main.xml file -- The MainActivity.java file -- Role of intents in text-to-speech conversion -- Motion components -- Intents and proximity alerts -- What are proximity alerts? -- Role of intents in proximity alerts -- Summary -- 5. Data Transfer Using Intents -- Finding the need to transfer data -- Taking a simple example -- Data transfer between activities - an INTENTed way -- Data transfer in explicit intents -- Methods of data transfer between activities -- Data transfer using putExtras() -- Implementation of putExtras() -- Implement a readymade tutorial -- Understanding the code -- The Activity1.java class -- The Activity2.java class.

The main_first.xml file -- The main_second.xml file -- The AndroidManifest.xml file -- Future considerations -- Extras supported data types -- The concept of Android Bundles -- Data transfer using Parcelable -- Implementation of Parcelable -- Implement a readymade tutorial -- Understanding the Parcelable implementation -- The Activity1.java class -- The Activity2.java class -- The layout_activity1.xml file -- The layout_activity2.xml file -- The Person.java class -- The AndroidManifest.xml file -- Future Consideration -- Data transfer using Serializable -- What is Serializable? -- An example of Serializable -- Implementation of Serializable -- Passing Serializable - a tutorial -- Walking through the Serializable code -- The Activity1.java class -- The Activity2.java class -- The Person.java class -- The layout_activity1.xml file -- The layout_activity2.xml file -- The AndroidManifest.xml file -- Data and the implicit intents -- Viewing a map -- Opening a webpage -- Sending an e-mail -- Making a call -- Miscellaneous scenarios -- Summary -- 6. Accessing Android Features Using Intents -- Features of Android OS -- Android features versus components -- Common Android features -- Layouts and display -- Data storage and retrieval -- Connectivity and communication -- Accessibility and multitouch -- Extensive content and media support -- Hardware support -- Background services and multitasking -- Enhanced home screen -- Other Android features -- Android features and intents -- The and tags -- Hardware features -- Software features -- Sharing using the SEND action -- Telephony and making calls using intents -- Making phone calls using intents -- SMS/MMS using intents -- Sending SMS using intents -- Sending MMS using intents -- Confirming message delivery using intents -- Receiving SMS messages using intents.

The SmsManager class -- The SmsMessage object -- Protocol Data Unit (PDU) -- Notification using intents -- Notification forms -- The NotificationManager class -- The Notification class -- The Notification layout -- Summary -- 7. Intent Filters -- Intent object and its categorization -- Component name -- Intent resolution -- Action -- Data -- Use of data in ACTION_EDIT -- Use of data in ACTION_CALL -- Use of data in ACTION_VIEW -- Category -- Extras -- Intent filters -- Handling multiple intent filters -- Test components of an intent filter -- Action test -- Writing conventions for -- Category test -- Setting up the launcher activity -- Data test -- Typical representation of the tag -- Summary -- 8. Broadcasting Intents -- Broadcasting in the Android OS -- The broadcast intents -- Built-in broadcasts in Android systems -- Detecting the low-battery state of a device -- The BatteryLowReceiver.java file -- The BatteryLowActivity.java class -- The AndroidManifest.xml file -- Detecting the screen on/off state of a phone -- The ScreenOnOffReceiver.java file -- The AndroidManifest.xml file -- Detecting the cell phone's reboot-completed state -- The PhoneRebootCompletedReceiver.java file -- The TempService.java file -- The AndroidManifest.xml file -- Sending and receiving custom broadcasts -- The activity_main.xml layout file -- The MainActivity.java file -- The CustomReceiver.java file -- The AndroidManifest.xml file -- Summary -- 9. Intent Service and Pending Intents -- Intent Service -- Comparison of four fundamentals -- Best case to use -- Triggers -- Usage and implementation of Intent Service -- Generating a fake notification from Intent Service -- A glance at the code -- Dive into the understanding -- Taking another example -- Pending Intents -- How to make Pending Intents work? -- Summary -- Index.
Abstract:
The book will take an easy-to-follow and engaging tutorial approach, providing a practical and comprehensive way to learn Android intents. If you are a novice or an intermediate Android Developer who wants to expand their knowledge of Android Intents, this book is ideal for you. Readers are expected to have basic understanding of Android development, how to use different IDEs, and how to develop applications using Android APIs.
Local Note:
Electronic reproduction. Ann Arbor, Michigan : ProQuest Ebook Central, 2017. Available via World Wide Web. Access may be limited to ProQuest Ebook Central affiliated libraries.
Added Author:
Electronic Access:
Click to View
Holds: Copies: