IntroductionWelcome| 00:00 | (music playing)
| | 00:03 | Hi! I'm Joseph Lowery, here to welcome you to
Android 4.1 SDK Jelly Bean New Features.
| | 00:11 | We'll open with a general overview of
what's fresh and hot in Android 4.1, and
| | 00:17 | then I'll show you how to set up
the SDK in both Windows and Mac.
| | 00:22 | Next, we'll dive deep into what the
developer can find and take advantage of
| | 00:26 | in Jelly Bean, including a smoother UI,
enhanced notifications, and beefed-up
| | 00:31 | media capabilities.
| | 00:33 | Then we'll go hands-on as I show you
how to build your first app and test it in
| | 00:38 | both a Jelly Bean enabled device. as
well as an emulator. I'll also cover how to
| | 00:43 | publish your Android apps and get
into the Android marketplace, Google play.
| | 00:49 | We'll close out the course with a
closer look at Jelly Bean from the user's
| | 00:53 | point of view with coverage of the
enhanced search options, including voice
| | 00:57 | search, Google services, and the joy of
tapping and sharing via Android beam.
| | 01:03 | Ready to grab a handful from the big
Google jar and see what you got? Me too.
| | 01:07 | Let's get to it.
| | Collapse this transcript |
| Course requirements| 00:00 | To follow along with this course, the
requirements are pretty straightforward.
| | 00:04 | From a tools perspective, you'll need a
code editor and, optionally, an Android 4.1
| | 00:09 | enabled device. You can use
whichever code editor you prefer.
| | 00:13 | I'm going to be working with Eclipse on the Mac.
| | 00:15 | It's a free editor for both Mac and Windows.
| | 00:18 | Most of our demonstrations and testing
will be done with the Galaxy Nexus, which
| | 00:22 | currently comes with the Android 4.1 installed.
| | 00:25 | We'll also be using an emulator that
is installed as part of the Android SDK.
| | 00:31 | That's it for tools.
| | 00:32 | From a knowledge perspective, the more
you're familiar with native development
| | 00:36 | for Android devices the better.
| | 00:37 | But this is not a code intensive
course, and we'll step lightly through the
| | 00:41 | building of a first app,
| | 00:42 | so you can get your feet
wet without much preparation.
| | Collapse this transcript |
|
|
1. OverviewTasting the flavors of Jelly Bean| 00:00 | Before we drill down into the specifics,
I wanted to give you a brief overview of
| | 00:04 | Jelly Bean in general, and
the new features in particular.
| | 00:08 | Jelly Bean, or Android 4.1, was announced at
the Google I/O conference on June 27, 2012.
| | 00:16 | The first device with Jelly
Bean was the Nexus 7 tablet.
| | 00:20 | As of this recording, there have been
two dot releases, 4.1.1, released on July 9,
| | 00:27 | and then 4.1.2, released on October 9.
| | 00:30 | Now there was a new version, version 4.2,
which also has the same name, Jelly Bean,
| | 00:37 | that was announced just before this recording.
| | 00:39 | Unfortunately, there were no devices
yet available with 4.2 installed, so it's
| | 00:44 | not covered in this course.
| | 00:46 | Generally, 4.1 was regarded as an
incremental release and many new features built
| | 00:53 | upon those previously released in
version 4.0, including Project Butter, which is
| | 00:58 | intended to provide a smoothness to user
interaction, enhanced notifications, and
| | 01:04 | an updated Android Beam
for near field communication.
| | 01:08 | There are numerous enhancements aimed
at developers of which the most pervasive
| | 01:13 | is perhaps Project Butter, which is
designed to make transitions and other user
| | 01:18 | interface operations smooth as butter.
| | 01:21 | In order to achieve the smoothness,
efforts were made on multiple fronts,
| | 01:24 | including the VSync, or vertical sync
timing, triple the buffering, adding touch
| | 01:29 | anticipation, boosting the CPU on input,
and adding a new tool called Systrace.
| | 01:36 | We'll go into much greater
detail about all of this in Chapter 3.
| | 01:39 | There are also upgraded notifications,
including enhancements to the notification
| | 01:44 | builder, and the addition of templated
styles with a custom style option and
| | 01:50 | increased associated actions.
| | 01:52 | There are also enhanced media
capabilities, extended input controls,
| | 01:57 | advanced text manipulations,
increased accessibility, and the upgrading of
| | 02:03 | security and network management.
| | 02:05 | Again, all of these will be
covered in much more detail in Chapter 3.
| | 02:09 | For the users, there is an updated UI
interaction, enhanced search (including
| | 02:16 | voice search) increased Google
services with the introduction of Google Now,
| | 02:20 | better camera and video applications,
improvements to web browsing and email, and
| | 02:26 | much better near field
communication with Android Beam.
| | 02:29 | Whether you're an Android developer or
Android user, there is a lot to love with
| | 02:35 | the Jelly Bean release.
| | Collapse this transcript |
| A note on market availability| 00:00 | Unlike Apple, which tightly controls all
devices using its iOS operating system,
| | 00:05 | Google, and the Android open source
project which it leads, by contrast, has
| | 00:10 | very limited control over who gets which
version of the Android OS, and especially when.
| | 00:16 | Android's release problems are two-tiered.
| | 00:18 | When a new version is first released,
it typically runs only on the Nexus line
| | 00:23 | of products that are manufactured with
a Google partner, like the Galaxy Nexus
| | 00:28 | phone produced by Samsung, or
the Nexus 7 tablet by ASUS.
| | 00:33 | The Android release must then be
picked up and fitted to work with a wide
| | 00:38 | range of device manufacturers, 15 in the US
and over 20 worldwide as of this recording.
| | 00:44 | If there are any custom features
or interface elements, those must be
| | 00:48 | integrated into the release.
| | 00:50 | Android has a nice gallery of
devices on their site that you can find at
| | 00:54 | android.com/devices.
| | 00:56 | Once the manufacturers are done, it
has to be turned over to the wireless
| | 01:01 | networks, who have their own
enhancements and testing to complete.
| | 01:04 | When they're done they'll
ultimately roll it out to the devices.
| | 01:08 | The Nexus devices get the
latest updates the soonest.
| | 01:11 | Others may not get the
update for many months, if ever.
| | 01:15 | According to Google stats, Gingerbread
which is Android 2.3, still has the bulk
| | 01:20 | of market share, 55%.
| | 01:23 | Currently Jelly Bean 4.1 is on the
Galaxy Nexus, the Google Nexus S, Galaxy S
| | 01:30 | III in Singapore, the HTC One X and HTC One S,
and the Motorola Xoom, as well as the Droid.
| | 01:39 | There is word that it's coming soon to
the Samsung Galaxy Note, Note 2, S II,
| | 01:44 | Ace 2, Beam, and Ace Plus.
| | 01:47 | LG has announced that it will be on
all of their 2012, models and Motorola has
| | 01:52 | said that it will be on all of their US
2012 models and across their 2011 line.
| | 01:58 | It's important for developers to
understand the devices on which Jelly Bean is
| | 02:03 | available, so that they can better
gauge their market potential and structure
| | 02:07 | the development plan accordingly.
| | Collapse this transcript |
|
|
2. Installing the SDKSetting up on Windows| 00:00 | Installing the Android SDK for
Jelly Bean is an essential task for
| | 00:04 | anyone developing an app.
| | 00:06 | In this video, we'll cover the steps for
setting up the SDK on Windows, from scratch.
| | 00:12 | If you've already installed the SDK, but not
the 4.1 API, I'll point out how to do that.
| | 00:18 | So I have opened here the
developer.android.com/SDK/index.html page where we can
| | 00:27 | get the Android SDK.
| | 00:29 | You can see by looking at the big
blue button that the website has already
| | 00:33 | detected our operating system.
| | 00:35 | If for any reason you need to download
for another platform, you'll find a link
| | 00:40 | if you scroll down just a little bit
under the System Requirements and using an
| | 00:45 | existing IDE listing.
| | 00:47 | I want to point out that when you do
this download you are not just getting the
| | 00:51 | SDK, you're also getting Eclipse, along
with the ADT, that's the Android Developer
| | 00:58 | Tools plugin, the Android SDK Tools,
the Android Platform-tools, the latest
| | 01:04 | Android platform, and the latest
Android system image for the emulator.
| | 01:09 | So let's go ahead and start the download.
| | 01:11 | I'll agree to the licensing
agreement and click Download the SDK ADT.
| | 01:17 | As with many applications these days
the initial download is quite small.
| | 01:22 | In this case, you're actually
downloading a ZIP file that will contain the
| | 01:26 | various component parts.
| | 01:27 | Once the download is complete we'll
be able to uncompress up and continue.
| | 01:31 | Alright, looks like we're done.
| | 01:32 | I'm going to go ahead and show in folder.
| | 01:35 | So there's my download.
| | 01:36 | I'll double-click to uncompress and you'll
see a very handy link that appears up top
| | 01:44 | that says For instructions about
setting up your Android SDK for first time,
| | 01:48 | read Setting Up the ADT Bundle.
| | 01:50 | And if we go there you'll
see a few steps outlined.
| | 01:53 | So let's head back to Windows Explorer,
and then I'm actually going to take this
| | 01:57 | and put it on the desktop, so
it will be pretty easy to find.
| | 02:01 | You of course might want to put it
in your root directory under another
| | 02:05 | subfolder, perhaps one
named Android or development.
| | 02:09 | The move is complete, so
let's go to desktop now.
| | 02:13 | I'll open up that folder, and you can see
there are two subfolders, eclipse and sdk.
| | 02:19 | Let's go into sdk, and there you'll see
five more subfolders. Drill down into
| | 02:24 | tools, and once you see android,
double-click that, and click Run.
| | 02:31 | That will start the command prompt, which
in turn will launch the Android SDK manager.
| | 02:36 | Now I want to point out right away that
you may notice that instead of Android
| | 02:41 | 4.1, you see Android 4.2 at the top here.
| | 02:46 | Google has just released this, literally
the day that we are recording this course.
| | 02:51 | Unfortunately, there are no
devices available with 4.2 installed on them,
| | 02:56 | so we can't do any real
testing and demonstration with them.
| | 02:59 | So we're going to keep our focus on
Android 4.1, which is beginning to enjoy a
| | 03:05 | lot of devices using it now.
| | 03:07 | So I'll collapse Android 4.2
and open up Android 4.1.2.
| | 03:14 | I'll select the main option, which will in
turn choose all the other options there.
| | 03:20 | And that's our latest platform
that we're going to be developing for.
| | 03:23 | We also want to select the earliest
version that we want to develop for.
| | 03:27 | And Google recommends that you choose
android 2.2, which is Froyo, or frozen yogurt.
| | 03:34 | Now I want to scroll down a little bit
further to in the Extras folder and point
| | 03:40 | out Google USB Driver.
| | 03:43 | You'll want to select this one also,
as that will be needed for doing any
| | 03:47 | testing of your device.
| | 03:49 | Okay, with all those options checked,
click the Install13 packages button.
| | 03:54 | And the next dialog box that appears
asks which packages of the selected do you
| | 04:00 | want to actually install?
| | 04:01 | Now we want to go ahead and choose
Accept All here, because we're going
| | 04:05 | to install them all.
| | 04:07 | This can take upto 10 to 15 minutes
to actually download and do the setup.
| | 04:11 | However, if you only have a limited
amount of time to devote to this process
| | 04:15 | when you do it, you can
install one at a time. Alright!
| | 04:19 | Let's go ahead and click
Install, and the process will begin.
| | 04:24 | Okay, the download is complete.
| | 04:25 | And let's just verify that.
| | 04:27 | I'll scroll down a little bit and now you
can see the Google USB Driver is Installed.
| | 04:31 | There is Android 2.2
Installed, and there's Android 4.1.2.
| | 04:42 | Now you're ready to establish an emulator.
| | Collapse this transcript |
| Setting up on Mac| 00:00 | Installing the Android SDK for
Jelly Bean is an essential task for
| | 00:04 | anyone developing an App.
| | 00:06 | In this lesson we'll cover the
steps for setting up the SDK on the Mac.
| | 00:10 | And if you've already installed the SDK, but
not the 4.1 API, I'll point out how to do that.
| | 00:17 | Let's start by going to
developer.android.com/SDK/index.html.
| | 00:25 | The website automatically detects your platform.
| | 00:28 | And the Big Blue button
there is ready to be clicked.
| | 00:31 | However, if you scroll down a little
bit, you'll see a download for other
| | 00:36 | platforms link, and you can use that
to get the SDK for any other platforms.
| | 00:40 | Now you'll notice that this button
not only downloads the SDK, but it also
| | 00:45 | downloads the ADT bundle for Mac.
| | 00:48 | ADT stands for Android Developer Tools,
and in this bundle you get everything
| | 00:53 | that you need, Eclipse plus the ADT
plugin, the Android SDK Tools, and more.
| | 00:59 | So let's go ahead and get started.
| | 01:01 | I'll click Download the SDK, and then
agree to the license agreement, and click
| | 01:07 | Download the Bundle.
| | 01:10 | As with many applications these days
the initial download is quite small.
| | 01:14 | In this case you're actually
downloading a ZIP file that contains the
| | 01:17 | numerous tools we were talking about,
the primary piece of which is the
| | 01:21 | Android SDK Manager.
| | 01:23 | Alright, now that it's downloaded,
| | 01:27 | I'm going to Show in Finder, and
there it is in my Downloads folder.
| | 01:31 | I'll double-click it to uncompress.
| | 01:35 | Now within the Android SDK MacOS X folder,
you'll find a series of other folders.
| | 01:42 | Let's drill down into
tools and then select android.
| | 01:47 | Now you could open this up with
just Terminal, but I'm going to just
| | 01:51 | double-click it and open
up Terminal automatically.
| | 01:56 | And once you're in the Android SDK
Manager we'll need to still get the essential
| | 02:01 | tools that we'll need.
| | 02:02 | This, by the way, is where you'd come if
you'd already had the Android SDK Manager
| | 02:08 | installed previously and just
wanted to get the Jelly Bean API.
| | 02:12 | So since we're just starting, we're
going to go ahead and select the Android SDK
| | 02:17 | Platform Tools that you see here.
| | 02:20 | Now Android 4.1.2, which is the latest
version as of this recording, as you can
| | 02:26 | see, is already selected for downloading
and you can see also on the right that
| | 02:30 | it's not installed yet.
| | 02:31 | That's correct, we're going to want to
get those, and you also want to get the
| | 02:35 | earliest version of the
API at your App will support.
| | 02:38 | Google recommends that you choose Android 2.2,
or Froyo, which is short for frozen yogurt.
| | 02:45 | I want to stress that while Google
recommends this as the earliest version for
| | 02:50 | you to develop for, your needs may be different.
| | 02:53 | Now we're also going to want to get an
item or so under the Extras category.
| | 02:57 | So let me expand Extras and then scroll down.
| | 03:01 | I'm going to go ahead and pick
up the Android Support Library.
| | 03:05 | And you'll notice that there
is a Google USB Driver here.
| | 03:09 | We don't need to get that for the Mac,
but if you're developing for Windows
| | 03:12 | you would need that.
| | 03:14 | Once you have made all of your
selections, click the Install button. The next
| | 03:19 | screen that's shown shows which
packages that you actually want to install.
| | 03:23 | The manager will pull out your
selections and allow you to install them one at a
| | 03:28 | time or all at once.
| | 03:30 | We're going to install them
all, so I'll click Accept All.
| | 03:33 | Now although it will actually take 10 to
15 minutes for this to download and set
| | 03:38 | up, in this lesson it will
appear to take no time at all,
| | 03:42 | thanks to the magic of editing.
| | 03:44 | If you only have a limited amount of
time to devote to this process when you do
| | 03:48 | it, you should install one at a time.
| | 03:50 | Alright, I'll click Install,
and the downloading has begun.
| | 03:55 | Well it looks like all my
installations went through.
| | 03:59 | Let me just verify by scrolling up,
and there are all the 4.1.2 elements
| | 04:05 | installed, excellent!
| | 04:06 | Your SDK is set up on your Mac, and
now you're ready to create an emulator.
| | Collapse this transcript |
| Establishing an emulator| 00:00 | There are two ways to test your
application during development.
| | 00:04 | You can check it in the actual device
by connecting a USB cable between your
| | 00:09 | device and the computer, or
you can use a software emulator.
| | 00:13 | While an emulator is no real
substitute for an actual device, it's definitely
| | 00:18 | very useful for baseline development.
| | 00:20 | In this video, I'll show you how to set
up an Android emulator for Jelly Bean.
| | 00:25 | Although I'm on the Mac here,
the process is identical on the PC.
| | 00:29 | The first thing you have to know is
that in Android-speak, an emulator is known
| | 00:34 | as the Android Virtual Device, or AVD.
| | 00:37 | So, to start the process, I have my
Android SDK Manager, which we installed in
| | 00:42 | the previous movie, opened and up and running.
| | 00:45 | I'm going to go to the Menu,
choose Tools > Manage AVDs.
| | 00:51 | The Android Virtual Device
Manager dialog box will open.
| | 00:54 | You can see that there are no
AVDs or emulators listed here.
| | 00:59 | In the real world development
situation, you'd be creating many different
| | 01:04 | emulators, targeting different OS versions
and different screen resolutions as well.
| | 01:09 | We're going to set up a very
basic one to get you started.
| | 01:12 | The initial step is to click New.
| | 01:16 | In the Create New Android Virtual Device
dialog box, first enter the name of your emulator.
| | 01:21 | We'll call this one Jelly_Bean.
| | 01:25 | Notice that I'm using an underscore here.
| | 01:28 | Now, let's set the Target from
the list of available options.
| | 01:32 | We're going to choose Android 4.1.2,
which is the latest version of Jelly Bean.
| | 01:39 | You'll notice the API Level is number 16.
| | 01:42 | Google has this distinct numbering
system that it applies to all of its
| | 01:47 | operating system versions.
| | 01:49 | The next option is CPU/ABI.
| | 01:52 | CPU is familiar to most, whether
you're a TRON fan or not, as an abbreviation
| | 01:57 | for Central Processing Unit.
| | 01:59 | But what about ABI?
| | 02:01 | ABI is short for Application Binary Interface.
| | 02:05 | This can vary by device.
| | 02:07 | But the most common in Android is ARM,
processor manufacturer like Intel.
| | 02:12 | And if I open up the CPU/ABI list, you'll
see ARM listed there as well as the Intel Atom.
| | 02:20 | Let's choose ARM.
| | 02:21 | Now, we're going to enter in the
memory size for the SD card next.
| | 02:25 | My Galaxy Nexus has about 16 gigs of memory.
| | 02:28 | But let's say I want to
target a wider range of devices.
| | 02:32 | So, I'll enter in 10240 or 10 gigs.
| | 02:37 | The next option is very important if
you use the emulator a lot because it will
| | 02:41 | save you a ton of time.
| | 02:43 | Android emulators can create snapshots
of where you are in the device, like if
| | 02:48 | you're in a particular app, and it can
automatically save and load the snapshot
| | 02:53 | whenever you start the emulator.
| | 02:55 | For all that to work, you have to
choose the Snapshot: Enabled checkbox.
| | 03:01 | Now, we're ready to set the resolution of your
emulator, which is found under the Skin category.
| | 03:07 | As you can see, there are a bunch of
preset options as well as the ability to
| | 03:12 | enter custom values.
| | 03:13 | We're going to go with the
Default option for this basic emulator.
| | 03:18 | Now, under Hardware here, you'll see
a number of properties and values and
| | 03:21 | you can also add the new ones in, including
any of these from the list that you see here.
| | 03:27 | So, if you need to test specific features,
this is where you would add in those properties.
| | 03:32 | I'm going to just leave the default
values here, and we're finally ready to
| | 03:36 | create our new emulator.
| | 03:37 | So I'll click Create AVD.
| | 03:40 | Once that process is completed, and
I'll warn you, it can take a bit of time,
| | 03:44 | we'll see a new listing in
the manage AVDs dialog box.
| | 03:50 | And there is our result, our Jelly_Bean
AVD has been created. I'll click OK.
| | 03:55 | You can see the listing there up
top in the AVD Manager dialog box.
| | 04:00 | If need be, you can select it
and edit to make any changes.
| | 04:04 | But let's go ahead and fire this puppy up.
| | 04:07 | So with that selected, I'll click Start.
| | 04:10 | This will bring up the
Launch Options dialog box.
| | 04:13 | The first option, Scale display to real
size, allows you to change the size of the
| | 04:19 | emulator according to your screen.
| | 04:21 | In my situation, leaving this
option unselected works out fine.
| | 04:25 | The Wipe user data option that you see
here really only comes into play after
| | 04:30 | you've been testing for a good while.
| | 04:32 | Since we're just starting,
we can leave that deselected.
| | 04:35 | Now, of the next two options, I'm
going to deselect Launch from snapshot for
| | 04:40 | this time, because we don't have a
snapshot first, but I definitely want to have
| | 04:44 | Save to snapshot selected.
| | 04:46 | Let's click Launch.
| | 04:51 | Once we're there, I'm going to quit
the emulator so I can demonstrate how
| | 04:54 | useful the Snapshot function is.
| | 04:56 | So I'll just go up and click Close.
| | 04:59 | And then, close the Starting
Android Emulator dialog box.
| | 05:03 | Now, let's start it again.
| | 05:04 | And you'll see just how
quickly the emulator will start up.
| | 05:07 | I have Jelly_Bean selected, I click Start.
| | 05:11 | This time, I'm actually going to
choose Launch from snapshot as one of
| | 05:14 | the launch options. Click Launch.
| | 05:17 | Good job!
| | Collapse this transcript |
|
|
3. What's New in 4.1 for the DeveloperExploring a smoother UI with Project Butter| 00:00 | If you've worked with previous
Android OS versions, one of the first
| | 00:05 | things you'll notice with a Jelly
Bean device is how you don't notice the
| | 00:09 | user interface so much.
| | 00:11 | That's because it's far
smoother than ever before.
| | 00:14 | There are no jerky stutter steps as you
transition from one screen to the next,
| | 00:18 | it just makes the move quickly and effortlessly.
| | 00:21 | Although of course, there was a
tremendous effort to make it like this, much of
| | 00:25 | which Google engineers group
under the heading of Project Butter.
| | 00:30 | Before we drill down to the why, let's
take a quick look at the overall effect.
| | 00:35 | Here I have my Galaxy Nexus with Jelly Bean 4.1.
| | 00:39 | Let's go to the App screen first.
| | 00:41 | Now just the introduction of all
the apps appears much smoother to me.
| | 00:47 | Now I'll swipe to the second page.
First, regular speed. If you watch closely,
| | 00:52 | you can see how the app icons on the
second page fade up and grow simultaneously
| | 00:57 | into position as the first
page of apps is moved off screen.
| | 01:01 | Let me go back and forth a
couple of times, so you can see this.
| | 01:04 | Let's go back to the first page,
second page, first page, second page.
| | 01:12 | Now let me do it really slowly so
you can see just how smooth it is.
| | 01:16 | I am on the second page now and I'm
going to swipe back to the first page,
| | 01:20 | and even moving really slowly, you can see
how smoothly the fade and transitions are.
| | 01:27 | For another demo, let's go back to Home,
so I'll tap Home, and now I'm going to
| | 01:32 | swipe to my third page, first one
swipe and then another, where I've got some
| | 01:37 | quick contacts set up of
some folks here at lynda.com.
| | 01:41 | Watch how smoothly and quickly Matt's
picture and info come up when I tap his name.
| | 01:47 | I'll tap below to send it back.
| | 01:49 | Now on earlier versions of the OS,
this action was relatively slow and quite
| | 01:53 | uneven, almost jerky. No more with Jelly Bean.
| | 01:58 | You'll find this same smoothness
everywhere you go in the Jelly Bean device now.
| | 02:02 | Let's pop that hood and get a
better idea of how this is all happening.
| | 02:06 | The goal of Project Butter was to make
device interactions as smooth as butter.
| | 02:12 | To accomplish this, the team
engineered a multilevel integrated approach
| | 02:16 | that affected three key areas: the
screen display, the touch interface, and
| | 02:22 | the underlying CPU.
| | 02:23 | Let's take a look at the screen display first.
| | 02:27 | The Frame Rate increased
to 60 frames per second.
| | 02:30 | This is largely due to the improved
vSync, or vertical sync, screen display timing.
| | 02:36 | vSync keeps everything marching to a
very specific beat, every 16 milliseconds,
| | 02:42 | including transitions, app rendering, and
screen refresh, so everything is snappy
| | 02:47 | in addition to being smooth.
| | 02:49 | Reacting to a user's touch
has been beefed up as well.
| | 02:53 | Now a feature called Touch
Responsiveness has been introduced that actually
| | 02:58 | anticipates where the user will tap next,
thereby preparing the action event to
| | 03:03 | trigger more quickly.
| | 03:04 | The enhancement to vSync also
impacts on touch and reduces latency.
| | 03:09 | The CPU and related components have
also been brought into Project Butter.
| | 03:15 | Animations, including page
transitions and scrolling, have all been
| | 03:18 | polished through triple buffering,
which combines CPU, GPU, and display
| | 03:24 | for smoother actions.
| | 03:26 | Jelly Bean also provides a CPU
input boost for touch events to further
| | 03:32 | reduce any latency.
| | 03:34 | Developers can see for themselves how
the system reacts to their app through a
| | 03:38 | new tool introduced in
Jelly Bean called systrace.
| | 03:41 | Systrace collects data regarding
system activities from the Linux kernel, and
| | 03:45 | displays that info as a group of
vertical time-series graphs, which you can see
| | 03:50 | an example of by going to the
Systrace page in the Debugging section of
| | 03:54 | developer.android.com.
| | 03:57 | For more details, see the Systrace help page.
| | 04:00 | Without a doubt, Jelly Bean, through the
combined efforts of Project Butter, have
| | 04:05 | made the Android interface the smoothest yet.
| | Collapse this transcript |
| Communicating with notifications| 00:01 | Notifications are one of the major
differentiators between phones and smartphones.
| | 00:06 | The standard old-style phones make
and receive calls, as do smartphones.
| | 00:11 | But smartphones are also capable of
receiving messages, or if you prefer, notices,
| | 00:16 | from a variety of sources.
| | 00:18 | Now these notifications can be a
reminder of an upcoming event or a heads-up
| | 00:22 | for incoming email.
| | 00:24 | As I found out during the recent
Hurricane Sandy, they can also deliver
| | 00:28 | alerts on extreme weather.
| | 00:30 | Notifications have received a major
overhaul in Jelly Bean, and not just in look
| | 00:34 | and feel, but also
functionality. Let's have a look.
| | 00:39 | You display any notifications by
swiping down from the top of the screen that
| | 00:43 | shows the top row of icons, like
the Home screen that you see here.
| | 00:47 | Any notifications that you receive are
indicated with small icons on the left.
| | 00:51 | Watch what happens to the background
when I swipe the notifications into view.
| | 00:56 | See how the background of the home
screen darkens and if I go back up,
| | 01:02 | the darkness reverses.
| | 01:03 | Now I have a few example notifications set up.
| | 01:06 | Let me swipe down the
Notification screen completely.
| | 01:10 | If you were to compare this Jelly Bean
notification screen to previous versions,
| | 01:14 | you'd see how different it is, both in
overall design and specific typography.
| | 01:19 | The text is thinner, but
larger, making it more readable.
| | 01:23 | As you'll see in a bit, Jelly Bean
offers a number of templated styles,
| | 01:28 | including a series of big styles.
| | 01:31 | One of my notifications is a Screen capture.
| | 01:34 | I'll show you how to do that
natively in Jelly Bean in the Updated Media
| | 01:38 | Capabilities lesson later in this chapter.
| | 01:41 | But what I wanted to show you here is
how you can expand individual notices.
| | 01:46 | I'll do a two-finger swipe on the
screen grab notice to open it up.
| | 01:50 | In the latest version of Jelly Bean,
they've implemented the single-finger swipe
| | 01:54 | as well, but I find the two finger
gesture to be much more reliable.
| | 01:58 | Now I can tap the screen if I want to
go see the full image and possibly edit
| | 02:03 | it, but I also have other actions I can take,
| | 02:05 | right from the Notification screen.
If I click the Share icon, I'm given a
| | 02:10 | number of options to choose from.
| | 02:12 | The Share icon is considered an action
and you can have up to three different
| | 02:17 | actions for each notification.
| | 02:20 | So how do you take advantage
of all of these newly added
| | 02:23 | notification possibilities?
| | 02:25 | You use Jelly Bean's new Java
class Notification.Builder.
| | 02:29 | The Notification.Builder class is, of
course, for notification objects, and
| | 02:34 | makes it easy to create notices using the
system's template for a standard look and feel.
| | 02:39 | With this Java class, you can quickly
set up your notice title, content, icon,
| | 02:45 | and even sounds, and you can make your
notifications much larger, up to 256 pixels tall.
| | 02:52 | As I said earlier, you can also specify actions.
| | 02:56 | This is done through the addAction method.
| | 02:58 | addAction takes three parameters,
an icon, a titl,e and a pendingintent.
| | 03:05 | A pendingintent is basically an
operation that normally takes place in another
| | 03:10 | app, like sharing a screen grab.
| | 03:13 | Any notification can have up to
three actions, as I mentioned before.
| | 03:18 | Jelly Bean's enhanced notification
abilities can help your app break out of its
| | 03:22 | box and keep the user informed with
up-to-the-minute interactive messages.
| | Collapse this transcript |
| Exploring updated media capabilities| 00:00 | The media capabilities in Jelly Bean
will truly help Android devices reach their
| | 00:04 | potential as full-featured multimedia systems.
| | 00:08 | And in this lesson, I'll explain why
that is from a developer's perspective.
| | 00:12 | But before we get to the list of
expanded media options, I wanted to show you
| | 00:17 | how to take advantage of another
Jelly Bean feature, native screen grabs.
| | 00:21 | Screen capture is essential for any app
developer because screen grabs are used
| | 00:26 | in everything from documentation to marketing.
| | 00:29 | Until now, you had to rely on a
third party app to handle this essential
| | 00:34 | chore, but no longer.
| | 00:35 | Let me demonstrate by going to my quick
content screen. I'll swipe twice to go
| | 00:40 | there from home, and now to initiate a
screen capture, you press the lower side
| | 00:45 | of the Volume button and the
Power button simultaneously.
| | 00:50 | You'll hear the camera snap, there is a
bit of a flash, and you'll see the image
| | 00:54 | briefly on your screen.
| | 00:56 | Now let me go to the Gallery, which is
swiping backwards and then tapping on
| | 01:01 | Gallery, and there you'll see shots
from the camera and also screenshots in
| | 01:06 | two separate albums.
| | 01:07 | So let me tap the Screenshot option.
| | 01:12 | Now from here, I have some
key options laid out up top.
| | 01:16 | I can share the image, send
it in a message, or trash it.
| | 01:20 | If I choose Share, and I'll tap that,
you can see I have some initial options:
| | 01:26 | Gmail, Bluetooth, Picasa and a few
more if I tap See all, Google+ and Bump.
| | 01:34 | Let me clear that menu by tapping outside of it.
| | 01:36 | Now the screen capture area is
just an extension of the gallery.
| | 01:40 | So I have all the same
editing options that I do there.
| | 01:43 | Let me tap to activate the top menu
and then click Settings over on the right,
| | 01:47 | and there you'll see
Slideshow, Edit, Crop, and so forth.
| | 01:52 | Let's try out cropping.
| | 01:53 | So I'll click Crop, and there you
can see the highlighted area with the
| | 01:59 | four screen grab buttons, let me go
so that I have just that area of the
| | 02:04 | central image highlighted.
| | 02:10 | There is the right and the top and now
I'll do the left, and let me tighten up
| | 02:18 | that bottom just a little bit.
| | 02:20 | Once that's done, I click OK
in the upper right-hand corner.
| | 02:24 | It saves the picture and
there's my new cropped image.
| | 02:28 | Native screen capture is pretty
cool, but what about the other
| | 02:32 | media capabilities?
| | 02:33 | Well, they can be divided into
General Media Options and enhanced
| | 02:38 | audio capabilities.
| | 02:39 | Under the General Media options,
Android now has low-level MediaCodec access.
| | 02:46 | This opens the door for apps to
incorporate both software and hardware codecs, so
| | 02:51 | the range of formats that can be
played back is greatly enhanced.
| | 02:54 | There is also a new MediaRouter, which
can determine where audio is output.
| | 03:00 | Instead of just a headphone jack,
there is also the possibly now of accessing
| | 03:04 | the USB port, which extends
docking and Bluetooth options.
| | 03:10 | On the audio front, there
have been a lot of upgrades.
| | 03:14 | As I mentioned, there is now
the possibility of USB audio.
| | 03:18 | Developers can also trigger recording
after audio playback, which is great for
| | 03:23 | prompting your users to
start their own recording.
| | 03:27 | The new multichannel support opens the
door for richer media experiences for
| | 03:32 | game players, music
lovers, and video aficionados.
| | 03:36 | Preprocessing audio is also built in,
which allows for effects like noise
| | 03:41 | suppression, auto volume game, and
acoustic echo. And if you like working out or
| | 03:47 | just taking long walks to an endless
stream of music, you're going to love the
| | 03:51 | new audio chaining capabilities.
| | 03:54 | If you're a developer of media-related
apps, you've got to be psyched for
| | 03:57 | all these new options.
| | 03:59 | And if you develop apps of any kind,
you've got to love the native screen
| | 04:03 | capture functionality.
| | Collapse this transcript |
| Integrating input devices| 00:00 | The more your Android device can
recognize and manage external devices, the
| | 00:04 | greater its range as an
entertainment or even educational hub.
| | 00:08 | Jelly Bean has added and enhanced a few
key input device associations that make
| | 00:14 | it possible for your device to
have a more prominent role as a hub.
| | 00:18 | Your app can now register to be
notified if a particular input device, such as a
| | 00:23 | new Joystick, is attached to the main unit.
| | 00:26 | This input device awareness registration is handled by
the InputManager.registerInputDeviceListener() method.
| | 00:35 | You can find more details about the
InputManager and that particular method on
| | 00:40 | the InputManager page that's found within the
Hardware Input category of Android reference.
| | 00:46 | Once your app knows that an input
device has been added, it needs to know
| | 00:51 | what that device can do.
| | 00:52 | Now this functionality is handled by the
InputDevice class, which was added in Jelly Bean.
| | 00:59 | The InputDevice class can
determine a wide range of device properties,
| | 01:04 | including the source,
| | 01:05 | so your app will know what kind of
device is added, whether it's a trackball,
| | 01:09 | gamepad, joystick, keyboard, or drawing stylus.
| | 01:14 | And then you can twirl down
for even more definition.
| | 01:17 | For example, if it's a keyboard, is
it full alphabetic keyboard or partial
| | 01:23 | non-alphabetic keyboard?
| | 01:25 | And if it's a joystick or similar
device, what can it process in terms of motion
| | 01:29 | range, orientation, X and Y
axes, pressure, size, or touch?
| | 01:36 | You'll find all these particulars laid
out on the InputDevice.html page found
| | 01:41 | within the View category of Android reference.
| | 01:45 | Another input device-related capability
that I want to discuss is a little bit
| | 01:49 | esoteric I'll grant you, but it's
pretty cool and surprisingly useful.
| | 01:53 | I have become a big fan of the use of
the vibrate feedback mechanism that's
| | 01:57 | built into Android devices
whenever you type a key or tap an icon.
| | 02:02 | Now, if your input device supports
vibration, like a game controller with rumble
| | 02:07 | pack capabilities, you can detect
that with the InputDevice.hasVibrator()
| | 02:12 | method and then get that service with the
InputDevice.getVibrator() method. Pretty cool.
| | 02:19 | These new capabilities go a long way
towards broadening the appeal of Android
| | 02:23 | apps that use external input devices.
| | 02:26 | If you're in that camp, congratulations!
| | Collapse this transcript |
| Advanced text manipulation| 00:00 | Some new features in Jelly Bean
serve to expand the technological markets
| | 00:04 | for Android devices,
| | 00:06 | like the ability to detect and
work with new input devices covered in
| | 00:10 | the previous lesson.
| | 00:11 | Jelly Bean has also expanded their
market internationally by providing support
| | 00:16 | for bi-directional and vertical
text, as well as other enhancements.
| | 00:20 | Let me show you a quick demo.
| | 00:23 | I've sent myself a little self-congratulatory
note where the text in Hebrew says mazel tov.
| | 00:28 | Note that the characters running
right to left instead of the Western
| | 00:32 | language left to right.
| | 00:34 | If you don't speak Hebrew, you've to
take my word for it that the characters are
| | 00:38 | running right to left, instead of
the Western language-style left right.
| | 00:43 | Bi-directional support is available in
either standard displays or in editing mode.
| | 00:48 | In developer jargon that means that
bi-directional support is available in both
| | 00:52 | TextView, that's Android's text
editor class, and EditText elements,
| | 00:57 | it's subclass that
permits the text to be edited.
| | 01:00 | There are other text-related
enhancements as well.
| | 01:03 | Vertical text is now supported in a
WebView instance, which is Android's class
| | 01:09 | for displaying all or part of a webpage.
| | 01:12 | Synthetic bold is available when
the language doesn't have bold glyphs.
| | 01:17 | Japanese-specific glyphs are rendered
when the system language is set to Japanese.
| | 01:22 | Arabic glyphs have now been optimized
for both WebView and TextView instances.
| | 01:27 | And there's also updated Unicode 6 support.
| | 01:31 | Finally, it's now not only possible for
Jelly Bean users to read an increasing
| | 01:36 | range of language types, it's also
possible for them to enter text through any
| | 01:41 | user-installed keyboard.
| | 01:43 | This feature supplements 27 current
international keymaps that are now
| | 01:48 | accessible to users with external
keyboards through the Language and Input
| | 01:53 | category of Settings.
| | 01:55 | Users can even set up a shortcut,
Ctrl+Space, to switch between keymaps.
| | 02:00 | Apps can publish additional
keymaps to the system via the
| | 02:05 | android.hardware.input.action.
QUERY_KEYBOARD_LAYOUTS constant.
| | 02:13 | You'll find more info about this in
the Android reference on the Hardware
| | 02:17 | Input Manager page.
| | 02:19 | While these text handling advances are
not a set of features that will impact
| | 02:23 | the full spectrum of developers,
they will definitely extend the Android
| | 02:28 | devices world.
| | Collapse this transcript |
| Increasing accessibility| 00:00 | Accessibility is, or should be, a major
concern of every web and app developer.
| | 00:06 | Google has made accessibility a primary
focus of Jelly Bean and followed through
| | 00:11 | with built-in tools, APIs, and even a
developer center dedicated to the topic.
| | 00:17 | Let's take a look at the system wide
accessibility features to start off.
| | 00:21 | For the vision impaired, Android 4.1
includes a screen reader service called
| | 00:26 | TalkBack to describe the results of actions,
| | 00:29 | as well as a companion feature called
Explore by Touch that audibly describes
| | 00:34 | the interface as you touch the various elements.
| | 00:37 | To enable it, you will first have to open
Settings, that I have here on one of my home screens.
| | 00:43 | So I'll swipe over to that and tap
Settings and then I'll scroll down, almost to
| | 00:49 | the bottom, where I see
Accessibility, and tap that.
| | 00:53 | Next tap TalkBack right up top.
| | 00:56 | When that opens, tap the ON/OFF switch in
the upper right, by default it's set to OFF.
| | 01:02 | That will display a dialog box
asking you to confirm your choice.
| | 01:07 | Once you tap OK, TalkBack
will kick in. So let's tap OK.
| | 01:12 | Now every action that I take
will be echoed by TalkBack.
| | 01:15 | So if I change my Ringtone volume,
| | 01:18 | [Audio]
| | 01:22 | I'm told of the action and this
specifies to what percentage I change it.
| | 01:25 | Let me raise the volume a little bit.
| | 01:27 | [Audio]
| | 01:31 | Now if I want to navigate through the
system there are a series of special
| | 01:35 | gestures you can use.
| | 01:37 | To use an icon, I'll need
to tap it not once but twice.
| | 01:41 | Let's click the TalkBack settings at the
bottom of the page to go to that screen.
| | 01:47 | I find it's best for most icons and options
to highlight it first and then double tap.
| | 01:53 | So I'll tap it once to highlight.
| | 01:54 | [Audio]
| | 01:56 | And you can hear TalkBack read
it back, and then again twice.
| | 02:00 | [Audio]
| | 02:06 | Now here is a pretty big list of options.
| | 02:09 | It says there are 16 at all
and we're seeing 1 through 9.
| | 02:12 | So how do you see the rest?
| | 02:15 | Well, you can't use a simple swipe up
to scroll, that would cause the last item
| | 02:20 | you touched to be read.
| | 02:22 | To scroll when you're in TalkBack mode,
you'll need to use a two finger swipe.
| | 02:26 | [Audio]
| | 02:31 | I want to point out two
options in the TalkBack settings.
| | 02:34 | The first is Launch "Explore by touch"
tutorial, found almost at the bottom of the screen.
| | 02:40 | We won't go into it, but I recommend
that you work your way through it in order
| | 02:44 | to better understand the wide
range of gestures used in this mode.
| | 02:48 | Now I do want to go into
Developer Settings, however.
| | 02:51 | Let met first highlight it.
| | 02:53 | [Audio]
| | 02:54 | And now I'll double tap it.
| | 02:57 | [Audio]
| | 03:01 | As you can see, and hear, there are three
options here which you can set to trace
| | 03:06 | what's happening in TalkBack
mode during a debugging process.
| | 03:10 | First you can set the Log
Output Level. If I tap it once.
| | 03:15 | [Audio]
| | 03:17 | And double tap to open.
| | 03:21 | [Audio]
| | 03:23 | You can see all seven levels ranging
from NONE to VERBOSE. Let me Cancel it.
| | 03:30 | [Audio]
| | 03:31 | You can also highlight the event sources in
the log to see what's triggering the TalkBack.
| | 03:36 | And finally, you can display the
actual speech output in the log.
| | 03:40 | Now if you're following along on your
device for the first time, you may be
| | 03:43 | wondering how to get
back to the previous screen.
| | 03:45 | Well, you can try double-tap back.
| | 03:49 | That's often a little tricky.
| | 03:51 | Luckily, there's a special gesture for
going back a page, and that's swipe down
| | 03:56 | and to the left, just like you're
going to the previous page of a book.
| | 04:00 | [Audio]
| | 04:03 | Let's do that one more time.
| | 04:05 | [Audio]
| | 04:08 | And now I'm going to
highlight the ON/OFF switch.
| | 04:11 | [Audio]
| | 04:13 | And then double tap to disable the feature.
| | 04:16 | [Audio]
| | 04:22 | To confirm, I'll highlight OK.
| | 04:24 | [Audio]
| | 04:25 | And then double tap.
| | 04:28 | I mentioned that Google has a great
deal of information about accessibility.
| | 04:33 | You can find that on the
developerandroid.com site.
| | 04:36 | There's detailed information about
accessibility APIs, how to build an
| | 04:41 | accessibility service, and even a checklist.
| | 04:44 | I think you'll find, like I did,
that it's a terrific resource.
| | Collapse this transcript |
| Exploring security improvements| 00:00 | A wide range of experts agree that
Jelly Bean is the most secure version of
| | 00:04 | Android released to date.
| | 00:06 | In this lesson, we'll take a look at
the primary security enhancements, along
| | 00:11 | with a personal security measure.
| | 00:14 | Android 4.1 is the first Android OS to
properly implement address space layout
| | 00:20 | randomization, or ASLR, security.
| | 00:24 | In brief, ASLR randomizes
where memory processes are mapped,
| | 00:29 | thus reducing the probability of
successful hacking. This update has been judged
| | 00:34 | by the expert to be a vast improvement
over the initial implementation in Ice
| | 00:39 | Cream Sandwich, or version 4.0.
| | 00:42 | Another under the hood security
enhancement has to do with the low-level system logs.
| | 00:47 | Previously, any app had permission to
read the logs of other apps and thus glean
| | 00:53 | any sensitive data there.
| | 00:55 | This permission known as read_logs
has been removed in Jelly Bean.
| | 01:00 | I want to show you another Jelly
Bean security enhancement that has a
| | 01:03 | more personal impact.
| | 01:05 | I've ever lost my phone, but
my daughter has, multiple times.
| | 01:09 | Luckily, she outgrew the habit
before phones had lock screens.
| | 01:13 | Now if she lost her phone and it was found,
to the person who found it couldn't get
| | 01:18 | pass the lock screen to get the owner info.
| | 01:21 | Jelly Bean now has a setting that
allows you to display a lock screen message
| | 01:26 | like the one shown here at the top of
my phone that gives a number to call.
| | 01:30 | Let me show you where that option is, and at
the same time, I'll add an offer of a cash reward.
| | 01:38 | So how that I add that to my lock screen?
| | 01:40 | Well, first I'll unlock the phone.
| | 01:43 | Now let me go into Settings, and in the
Personal section, I'll tap Security, and
| | 01:52 | now I'll tap Owner info.
| | 01:54 | There you can see my current message.
| | 01:56 | Let me move the cursor to the end of the
message and add in my Cash Reward option.
| | 02:08 | So now I can tap Home, turn off the
phone, and then when I turn it back on, there
| | 02:16 | at the top of the lock
screen you can see my new message.
| | 02:18 | I discovered one thing while I was trying
out different messages that I want to share.
| | 02:24 | If the message is too long to display
on a single line, it scrolls across like a
| | 02:28 | kind of ticker-tape. So don't delay!
| | 02:30 | Add that lock screen message today.
| | Collapse this transcript |
|
|
4. Creating a Sample AppSetting up the project| 00:00 | In this lesson, we're going to walk
through the steps of building your first
| | 00:04 | app with Android 4.1.
| | 00:06 | Now we have Eclipse already installed,
and I have it up and running here.
| | 00:10 | Even though it says ADT, which is short
for the Android Development Tools, this
| | 00:16 | is Eclipse. And we're going to start
by going to the first icon that you see
| | 00:21 | here, clicking on New, and we want to
select the Wizard under the Android
| | 00:27 | section, choose Android
Application Project, and then click Next.
| | 00:32 | Now we're going to call this one Jelly Bean One,
and use the word One instead of the number 1.
| | 00:39 | Numbers aren't accepted in the name.
| | 00:40 | Now, I also want to change my Package Name.
| | 00:44 | Normally, you would put in your website
name to replace 'example' here. I am going
| | 00:48 | to put in lynda, and all the other
entries here are right, and they have picked
| | 00:53 | up these values from the SDK.
| | 00:54 | Now you do have a number
of options with the theme.
| | 00:58 | Here we have Holo Light with a Dark Action Bar.
| | 01:00 | If I open this up a little bit, you can see
that there is a number of other varieties.
| | 01:05 | Once we get into the app,
you'll have a lot more options.
| | 01:08 | So I would say just go with this
default for now, and let's click Next.
| | 01:13 | On this screen, we'll configure the
project and again I am going to keep all the
| | 01:18 | default values, and click Next.
| | 01:20 | Now we get to configure the launcher_icon,
and you can use the ones that's
| | 01:25 | provided, or you can switch to Clip
Art, and Choose one from some of the
| | 01:31 | available Clip Art items that you
have here, or go with just straight Text.
| | 01:38 | I'm going to go back to Image and just
use a provided image, let's click Next.
| | 01:44 | Now we get to select the
kind of Activity for our app.
| | 01:47 | Again, there are a number of versions.
| | 01:49 | FullScreenActivity, LoginActivity, a
MasterDetailFlow, SettingsActivity.
| | 01:56 | We're going to go with Blank because this is
just a simple, basic app, and I'll click Next.
| | 02:03 | Now because I've chosen
BlankActivity, I get these options.
| | 02:07 | Let's leave them all at their
defaults again and click Finish.
| | 02:13 | After Eclipse has finished
setting up the files, you should have a
| | 02:16 | representation of your project, Jelly
Bean One in my case, displayed. And now
| | 02:22 | your setup is done, And
you're ready to work on the app.
| | Collapse this transcript |
| Testing your app on a device| 00:00 | In the previous lesson, we set up
all the necessary files in Eclipse, and
| | 00:04 | created our first Android app using Jelly Bean.
| | 00:08 | In this lesson, I'll show you how to
test your newly created app in a device.
| | 00:13 | So here I have the files in ADT/Eclipse,
carried over from the previous lesson.
| | 00:19 | It's really beyond the scope of this
course to do any actual application
| | 00:22 | development, but let's change the Text
here just to make sure we're not getting
| | 00:26 | some canned content.
| | 00:28 | So, I am going to select my Text, Hello world!
| | 00:31 | and then over in the Properties Panel,
I'll go to where it says Text, and I'm
| | 00:35 | going to change this from a variable,
hello_world, to straight text, and let's
| | 00:42 | just make it, Hey There, Brave New World!
| | 00:51 | When I press Tab, you can see
that it's changed on the app.
| | 00:56 | Now let's go to File > Save All,
just to incorporate those changes.
| | 01:00 | Now before I connect my device to the
computer, I want to make sure that the
| | 01:06 | two can communicate.
| | 01:07 | So let me go to my device and power it
up, I'll unlock it, and then swipe to my
| | 01:13 | second homepage, where my Settings are,
tap Settings, and then down at the bottom
| | 01:18 | of the screen, tap Developer options.
| | 01:23 | I want to make sure that USB
debugging is checked, it is.
| | 01:28 | So looks like I'm good to go.
| | 01:30 | Finally, let's go back to Home, and
now we're ready to connect the device to
| | 01:37 | the computer with a USB cable, and I
get a couple of messages on the system
| | 01:42 | indicating that everything is up and running,
and now we're ready in Eclipse to click Play.
| | 01:49 | You can see down in the lower right
that it's launching Jelly Bean One, and
| | 01:54 | now if we take a look at the device,
there's our app, showing on the screen, success!
| | 02:00 | So, to show that this is recognized as
an app, let me tap Home, and now I'll go
| | 02:06 | into APPS, and there on the APPS
screen, you can see my icon, for the APP.
| | 02:12 | So that's how you set up a device for testing.
| | 02:16 | In the next lesson, I'll show you
how to work with the emulator instead.
| | Collapse this transcript |
| Working with the emulator| 00:00 | As noted before, it's great to test on your
device, but sometimes an emulator is handier.
| | 00:05 | If you haven't setup your Android
emulator yet, please review Chapter 2's lesson
| | 00:10 | Establishing an emulator.
| | 00:12 | This lesson continues the work we've done
in the previous two lessons of this chapter.
| | 00:17 | The easiest way to view your work in an
emulator, is if you're developing with
| | 00:21 | ADT/Eclipse, as we are, and then to
launch the emulator from within Eclipse.
| | 00:27 | So I'm going to go up to Window >
Andorid Virtual Device Manager, open that up,
| | 00:34 | and there you see the emulator we
created, Jelly_Bean, so I'll select that,
| | 00:37 | and then click Start.
| | 00:38 | Now I'm going to deselect Launch from
snapshot, so I can begin with a clean slate
| | 00:44 | here, now I click Launch.
| | 00:52 | So, let's go to Home, and then the App
screen, and there is Jelly Bean One, in
| | 00:59 | the second the last row on left, good job.
| | 01:02 | Now, you can debug your App in
both the device and the emulator.
| | Collapse this transcript |
|
|
5. Publishing Your Android AppsPrepping for publication| 00:00 | Once your app is ready, you'll want to publish
it on Google Play, the Android marketplace.
| | 00:06 | Before you can actually publish the
app, however, there's a fair amount of
| | 00:09 | preparation involved. This lesson goes
through the prepublication process, so
| | 00:15 | you'll know what you need to do.
| | 00:17 | First you'll need to
register for a Publisher account.
| | 00:20 | You can start the process by going to
http://play.google.com/apps/publish.
| | 00:27 | The registration process is very
straightforward and currently costs $25.
| | 00:32 | To begin the registration you'll
need to log in with your Google Account ID.
| | 00:38 | Because I'm already registered as an
Android Developer, I'm taken to the
| | 00:42 | Android Developer Console, which is
exactly where you'll land after you have
| | 00:46 | completed the registration.
| | 00:48 | We'll return to this location in the
next lesson in this chapter, Getting into
| | 00:51 | Google Play, but for now we need to
go over the rest of your preparation.
| | 00:57 | There are three main steps of
preparation. First, you need to gather various
| | 01:02 | supporting materials. Next, you'll
need to configure your app properly.
| | 01:07 | Last, you need to create a final build.
| | 01:10 | Let's take a closer look at each of these steps.
| | 01:12 | The primary item you'll need to get is
a digitally-signed certificate that you
| | 01:18 | as the developer own.
| | 01:20 | This cryptographic key is required.
| | 01:23 | For more details on how to get such a
key see the Obtain a suitable private key
| | 01:28 | section of the app signing
HTML page, under publishing.
| | 01:33 | Other materials include an application
icon, which is a 32-bit PNG file, with
| | 01:38 | alpha transparency,
output to a variety of sizes.
| | 01:43 | Google has a terrific guide for
creating such icons, including all the
| | 01:47 | required dimensions.
| | 01:50 | I strongly recommend that you include
a EULA, or End-User License Agreement.
| | 01:55 | A EULA will help protect your intellectual
property as well as yourself and your organization.
| | 02:00 | There are many examples of EULAs online.
| | 02:03 | Additionally, you should spend a fair
amount of time creating your marketing and
| | 02:07 | promotional materials, including
screenshots, and marketing text.
| | 02:12 | Next, you want to configure your app.
This is the precursor to actually compiling
| | 02:17 | the final build for upload.
| | 02:20 | When you're configuring your app,
first and foremost you want to make sure
| | 02:23 | you've got a good solid name.
| | 02:26 | Once the app is distributed you can't
change the name. You can set the name in
| | 02:30 | the manifest file of your project.
| | 02:32 | You will need to disable any logging
and debugging options in your code. This
| | 02:38 | includes deleting calls to Log()
methods, removing Android:debuggable
| | 02:42 | attributes, as well as any tracing calls.
| | 02:46 | To ensure proper compiling make
certain the project directory is clean
| | 02:50 | without any orphan files.
| | 02:52 | You'll also need to update your
manifest permissions, icons, and version
| | 02:56 | parameters, if required.
| | 02:57 | Of course, you should ensure that
your app is compatible across all desired
| | 03:02 | devices, covering multiple screens, and tablets.
| | 03:05 | And you'll want to be positive that
any external URLs access are the
| | 03:10 | correct production ones.
| | 03:12 | Finally, if your app is a commercial
one, you should implement Google Play
| | 03:17 | Licensing, so you can control access.
| | 03:19 | The last preparatory step is
to actually create your build.
| | 03:24 | If you're developing your project with
Eclipse and the ADT plug-in, and you've
| | 03:28 | completed all your other
preparation, this is pretty much a breeze.
| | 03:32 | Let's go over to Eclipse, so
I show you how to kick it off.
| | 03:35 | In Eclipse, I have my Project Explorer
showing, and my project Jelly Bean One is
| | 03:41 | selected. I'll go up to File > Export.
| | 03:47 | In the Export dialog box I want to
twirl open Android, and then choose Export
| | 03:53 | Android Application, and click Next.
| | 03:56 | Once the project check is complete, if
there are no errors found, you can go
| | 04:01 | ahead and click Next.
| | 04:03 | From here you just follow the rest of
the steps in the Wizard. Because I have
| | 04:07 | not created a digitally signed
certificate for Jelly Bean One, our little test
| | 04:11 | app, this is as far as I can go.
| | 04:14 | Once the export Wizard has been
completed, your app will be compiled, signed, and
| | 04:19 | ready for distribution, which
we'll cover in the next lesson.
| | Collapse this transcript |
| Getting into Google Play| 00:00 | Getting into the premier Android
marketplace, Google Play, is ultimately
| | 00:05 | straightforward, although it may
seem a bit overwhelming at times.
| | 00:09 | In this lesson I'll walk you through
the entire application so you can get a
| | 00:13 | better understanding of the
process and what's required.
| | 00:17 | To do this, I am going to take
advantage of a bit of a back door that currently
| | 00:22 | exists in the Google Play application process.
| | 00:25 | Google does have a new application
process in beta as part of their overhaul of
| | 00:29 | the developer console.
| | 00:31 | So there's no guarantee that this
accessibility will be around forever.
| | 00:35 | But in this lesson you will
be able to see all the steps.
| | 00:39 | So I'm here in the Android Developer
Console, and you can see I don't have an app
| | 00:43 | published on Play yet.
| | 00:44 | So I am going to go ahead and click the
Upload Application button to start the process.
| | 00:50 | Now here's the back door.
| | 00:52 | Don't click Choose File and upload
any file, instead just click Close.
| | 00:58 | As you can see we're now in the Edit
Application screen, where we have access to all the fields.
| | 01:04 | There are two tabs up top, Product
details, where we'll spend most of our time in
| | 01:09 | this lesson, and APK files.
| | 01:12 | Let's take a quick look at the APK files tab.
| | 01:16 | This tab lists all the Android
Application Package, or APK, files already uploaded,
| | 01:22 | as well as giving you an
opportunity to upload more.
| | 01:26 | Now let's head back to Product
details and the meat of the lesson.
| | 01:30 | I'll scroll down just a bit so we
can see the first of the six different
| | 01:33 | sections of the application.
| | 01:35 | We begin with uploading your assets.
| | 01:38 | This area gives a good breakdown of
what's required and the accepted formats.
| | 01:42 | You will need to upload
at least two screen shots.
| | 01:46 | Some of those marketing images
discussed in the previous lessons.
| | 01:50 | These images are displayed on
the details pages in Google Play.
| | 01:54 | You will also need to upload
a high-res application icon.
| | 01:59 | This is not, as you might think, the same
thing as your launcher icon, although it
| | 02:03 | could be a higher
resolution version of that image.
| | 02:07 | Next are a couple of optional uploads,
promotional graphic and feature graphic.
| | 02:11 | The promotional graphic is a much
smaller image, 180x120 pixels, while the
| | 02:18 | feature should be 1024x500.
| | 02:21 | Although they're technically optional,
Google strongly recommends you submit
| | 02:26 | them so your app can be properly featured.
| | 02:29 | You also have the option to include a
link to a promotional video hosted on YouTube.
| | 02:34 | Next up, Privacy Policy.
| | 02:36 | It's considered a best practice to
have a privacy policy, and here you can
| | 02:41 | enter a link to your own.
| | 02:43 | Finally, there is a checkbox
to opt out of general marketing.
| | 02:46 | I don't know about you, but I tend to
think that the more marketing, the better.
| | 02:50 | So I personally would uncheck this option.
| | 02:53 | The next section is Listing details.
| | 02:56 | First, you can choose which languages your
app supports and then set the default language.
| | 03:02 | Next, you enter your app's title,
which must be 30 characters or less.
| | 03:07 | The other text areas in this section
allow you to enter the general description,
| | 03:12 | recent changes, especially helpful if
the app is been upgraded, as well as a bit
| | 03:17 | of promotional text.
| | 03:20 | You'll need to declare whether
your app is an application or a game.
| | 03:24 | Once you do, you can
further choose its category.
| | 03:26 | I am going to go ahead and set this
one as an application, so you can see the
| | 03:31 | whole wide range of categories available.
| | 03:34 | So now if I click on the category list,
you can see that there is a good number
| | 03:38 | of options to choose from.
| | 03:40 | Let's scroll down so we can see
Publishing options, the next category.
| | 03:45 | The first option here is Copy Protection.
| | 03:49 | This option will soon be deprecated
and as the note indicates, using the
| | 03:53 | licensing services is recommended.
| | 03:56 | Specifying the content rating is
generally done for games, and most applications
| | 04:01 | you would select everyone.
| | 04:03 | However, there are a number of exceptions.
| | 04:06 | If your app request the user's location,
it cannot use the Everyone option,
| | 04:11 | but it should use Low Maturity.
| | 04:14 | If your app shares location, it should
be rated Medium or High Maturity. The
| | 04:20 | other circumstance that would exclude an
app from being rated for everyone is if
| | 04:25 | it hosts communication between users.
| | 04:28 | If your app does, it will need a
Medium or High Maturity rating.
| | 04:32 | Next up is Pricing.
| | 04:34 | Unless you have set up a merchant account
with Google check out, your app will be free.
| | 04:39 | The following section covers the
countries you want to make your app available in.
| | 04:44 | You can choose to allow All Countries,
specify specific ones, or if you scroll
| | 04:50 | down a little bit more,
select all but certain countries.
| | 04:55 | Next up the supported devices list,
this will be populated by the entries in
| | 05:00 | your manifest file, and since we
haven't uploaded an APK yet, it's blank here.
| | 05:05 | You will want to enter your contact
details next, so the marketing department
| | 05:09 | can give you a heads-up when
those marketing opportunities arise.
| | 05:14 | The penultimate section allows your app
to communicate with your servers via the
| | 05:19 | Google Cloud Messaging service.
| | 05:20 | You will need what's called a
simple API Key to work with the service.
| | 05:25 | And the final section at the bottom of
the application confirms that your app
| | 05:30 | meets Android content guidelines and that
your app complies with the US export laws.
| | 05:35 | There is a helpful link
here for you to learn more.
| | 05:39 | It's a lengthy application, I'll
grant you, but access to the Google Play
| | 05:42 | marketplace is worth it.
| | 05:43 | Good luck!
| | Collapse this transcript |
|
|
6. What's New in 4.1 for the UserExploring updated UI interaction| 00:00 | Jelly Bean brings a rich and
surprisingly robust variety of user interface
| | 00:05 | enhancements to the table.
| | 00:07 | We've touched on a few of these in
other lessons in this course, like
| | 00:10 | notifications and the
smoothness of Project Butter.
| | 00:14 | If you missed those check out Chapter 3,
| | 00:17 | What's New in 4.1 for the developer.
| | 00:19 | In this lesson we are going to pile on
with some more specific ways in which
| | 00:25 | user interaction has gotten
an upgrade with Jelly Bean.
| | 00:28 | You don't have to look any further than the
lock screen to see the first of these changes.
| | 00:34 | Notice how a circle of dots softly
fading out follows my finger around the
| | 00:40 | screen, until I land on one
of the targets, like unlock.
| | 00:45 | As I mentioned earlier, pretty much
everything is so much smoother now
| | 00:49 | with Project Butter.
| | 00:50 | However, it's also noticeable how
much faster things are when compared
| | 00:55 | to previous versions.
| | 00:57 | Let's go from the Homescreen to the App Drawer.
| | 01:01 | Let's go back and forth
so you can really see it.
| | 01:03 | I will tap Home and then Apps again.
| | 01:07 | Other interactions are just as fast.
| | 01:10 | Let's bring up recent apps. Pretty
close to instantaneous, wouldn't you say? And
| | 01:15 | dismissing them by tapping
recent apps again, is just as clean.
| | 01:19 | Android 4.1 is not just faster, it's more
precise, and best of all lets you make the call.
| | 01:27 | Now when you add a new widget to your
home screen, other widgets get out of the
| | 01:32 | way, and you can see exactly
where in the preview screen.
| | 01:35 | Let's bring in a couple of widgets,
so you can see what I am talking about.
| | 01:39 | So I am here in the Apps drawer and I
will tap the WIDGETS tab. Let's say I want
| | 01:44 | to add the clock to my home screen, so
I will press and hold that until the
| | 01:48 | Home screen preview comes up.
| | 01:50 | Now I can place it in the
center, when I let go, there it is.
| | 01:55 | If I decide I want to move it, I can
change it's placement by pressing and
| | 01:59 | holding on it, and now, should I move
it to either corner, the icons that are
| | 02:04 | there, like the Camera icon, gets
out of the way. Pretty sweet!
| | 02:09 | So let me move that back to the
center and then I will drag the camera icon
| | 02:14 | back down into place.
| | 02:16 | This make-room functionality, it's
also available in the preview screen.
| | 02:20 | Let's add one more widget.
| | 02:23 | So I will go back to the Apps Drawer,
make sure I am on the WIDGETS, tab and this
| | 02:27 | time I'm going to click and hold
Calendar, and on the Preview screen I am going
| | 02:32 | to put it right in the
center there below the clock.
| | 02:35 | You can see the clock jump up to make room.
| | 02:38 | Removal of icons is cleaner to.
| | 02:40 | Let me get rid of the two widgets I just added.
| | 02:43 | First, I am going to press and hold the
clock, you can see the X followed by a
| | 02:48 | Remove that appears at the top.
| | 02:51 | When I drag the clock to that remove, both
turn red, and when I release, its gone.
| | 02:57 | I kind of took my time with that one.
Let me get rid of the calendar in real
| | 03:02 | time so you can see how
fast and smooth it really is.
| | 03:05 | So I am going to click and hold the
calendar and then just swipe it up. Gone.
| | 03:11 | Not only are physical interactions
cleaner, faster, and smoother, but Google has
| | 03:16 | really brought voice interaction into
reality by greatly expanding Android voice
| | 03:22 | commands in Jelly Bean.
| | 03:23 | We will explore voice search
in detail in a separate lesson.
| | 03:28 | But I wanted to demonstrate a few
of the more practical possibilities.
| | 03:32 | I have got Google search at the top of
my home screen, so I will just tap the
| | 03:36 | microphone and then give a
voice command for a reminder.
| | 03:40 | The key to successful voice
commands is lack of hesitation.
| | 03:46 | Note to self, pick up eggs, milk, and dog food.
| | 03:50 | And there's my note.
| | 03:52 | Once the saving of the note has been
complete it sends an e-mail to myself with
| | 03:56 | both the text message and an
audio recording of my note.
| | 03:59 | Of course you can do more than
communicate with yourself. Let's send a text
| | 04:04 | using voice commands.
| | 04:07 | Send text to Matt Fishbach,
message I'm running 15 minutes late.
| | 04:14 | Click Send message and the message is off.
| | 04:17 | Just like the phrase 'note to self,' the
words 'send text to' constitute a voice
| | 04:23 | action and the word 'message' is a parameter.
| | 04:26 | You can find a list of voice
action in your Android user guide.
| | 04:30 | There are tones of practical voice
commands, but let's close this lesson with a
| | 04:35 | totally impractical one.
| | 04:38 | If you've ever seen any movie where the
characters love to fly planes, one of
| | 04:41 | them almost always does a
barrel roll. Well, so can Jelly Bean.
| | 04:47 | Do a barrel roll. Hours of fun, right?
| | 04:51 | After all the hard work of enhancing 4.1
user interactions, I guess the engineers
| | 04:56 | just needed to cut loose.
| | Collapse this transcript |
| Exploring the enhanced search and improved voice search| 00:00 | As you might imagine, search on any
Google device is a really big deal, and
| | 00:05 | Jelly Bean has stepped up to the
plate and seriously taken Google Search to
| | 00:09 | the next level by making it more
accessible with richer results and more
| | 00:13 | direct user interactions.
| | 00:16 | Google Search is very available in Jelly Bean,
| | 00:18 | right from the get-go. Here on the
lock screen, I can unlock the phone and go
| | 00:24 | directly to search by swiping up.
| | 00:26 | Google Search, as we've seen,
is also available as a widget.
| | 00:30 | You can see this when I just tap Home
and it is placed up top by default on
| | 00:35 | Google co-branded devices,
like the Galaxy Nexus.
| | 00:40 | Standard search is as robust as the
desktop version with a compatible set of results.
| | 00:46 | Let me tap into the Search field and
then I'll enter a search term, I'll type
| | 00:51 | Jelly Bean, and hit Search.
| | 00:55 | By default the Web results are
initially displayed, but I can easily switch to
| | 00:59 | images by tapping that at
the bottom of the screen.
| | 01:02 | Google Search on a Jelly Bean device
integrates whatever device functionality
| | 01:07 | is available, like geolocation.
| | 01:10 | I'm currently recording this
lesson at the lynda.com headquarters in
| | 01:13 | Carpinteria, California.
| | 01:15 | Watch what happens when I
enter a search for best bbq nearby.
| | 01:20 | I'll clear the text field.
| | 01:23 | I'll enter best bbq nearby.
| | 01:27 | When I click the Search icon, I'm
given a Google Map representation of places
| | 01:32 | for best BBQ near Carpinteria,
California and the ZIP code.
| | 01:36 | And we have a good listing going from A to G.
| | 01:41 | Let's turn to the most amazing
enhancement to Google Search, Voice Search.
| | 01:47 | As seen in the previous lesson, Google
has seriously ramped up the voice commands.
| | 01:52 | Nowhere is that more
evident than in Voice Search.
| | 01:56 | Let's run through a few examples.
| | 01:58 | I'm in a go back to Home
just to clear the screen.
| | 02:01 | Now I can start for search by
clicking the microphone as I did in the
| | 02:05 | previous lesson, or activate the
Search field and then just say Google, best
| | 02:13 | vegan restaurant nearby.
| | 02:14 | And there are my results ready to
be contacted or located on the map.
| | 02:22 | Let's try some more specific
types of searches, like a webpage.
| | 02:26 | With Voice Search activated, I can
use the open keyword, open lynda.com.
| | 02:34 | The Web results are initially
displayed. What about images?
| | 02:39 | You can go directly to Google's image
search by saying, show pictures of, and then
| | 02:44 | the subject, like this: show
pictures of golden retrievers. Very nice!
| | 02:52 | How about definitions? Define sagacious?
| | 02:59 | [Video]
| | 03:04 | Voice Search can also handle weather.
| | 03:08 | What's the weather tomorrow in New York City?
| | 03:12 | [Video]
| | 03:16 | What about conversions?
| | 03:17 | How many kilometers are in a mile?
| | 03:21 | [Video]
| | 03:27 | Of course, because engineers are
engineers, there are some inevitable, shall we
| | 03:32 | say, sagacious answers. Who founded Apple?
| | 03:36 | [Video]
| | 03:43 | For me, Google Search and
especially Voice Search, has taken on an
| | 03:47 | evolutionary leap in Jelly Bean.
| | Collapse this transcript |
| Interacting with Google services| 00:00 | If I tap the Google icon on my
Home screen, I see a variety of Google
| | 00:05 | services, everything from Gmail to Messenger,
and all of them have been upgraded for Jelly Bean.
| | 00:12 | Moreover, an entirely new aggregator
of Google services has been implemented.
| | 00:17 | It's called Google Now, and it's extremely cool.
| | 00:20 | Let's start the ball rolling at Google+.
| | 00:23 | With my Google collection on the Home
screen, I'll tap Google+ to open it up.
| | 00:29 | The look and feel of the
stream has been snazzed up a bit.
| | 00:32 | The first time I swipe through the stream,
the large images seem to just float into place.
| | 00:39 | On Tablets, the Google+ stream
has a new, magazine-style layout.
| | 00:44 | I'll click the Google collection, icon
and then Google+, and here you can see
| | 00:50 | two columns of streams side-by-side
for a good portion of the page, and as I
| | 00:55 | move up, then it extends to a
horizontal single column, and it breaks it up,
| | 00:59 | again, like a magazine layout.
| | 01:02 | You can also now add and
manage events right from Google+.
| | 01:06 | I'll tap the Google+ icon in the upper
left, which opens up a side nav. From there,
| | 01:12 | I'll tap Events, and once it
loads, I'll tap Create an event.
| | 01:18 | From here I could proceed to invite
folks to a movie night or other event.
| | 01:23 | Any related post or photos are saved to
the Event, so I can revisit them at any time.
| | 01:28 | This ability is available
on both phone and Tablet.
| | 01:32 | Let me show you another Google app
that's been given a facelift for Jelly Bean
| | 01:36 | powered tablets, Gmail.
| | 01:39 | So I'll tap HOME, Google, and then Gmail.
| | 01:44 | The new layout makes it easy to see a
full list of messages, all maintaining
| | 01:49 | access to all my folders and labels.
| | 01:53 | Now there's another Google owned service
that's been given an upgrade, and that's YouTube.
| | 01:57 | So let's go HOME, Google, YouTube.
| | 02:03 | When we open up in YouTube,
you'll see my Channel Feed.
| | 02:06 | Now you can see which subscriptions are
shown in your Feed by clicking YouTube
| | 02:10 | in the upper left, and there you see
the account that I have, and the three
| | 02:14 | Channels that I've subscribed to.
| | 02:17 | Let's see what's happening
on the lynda channel. Nice!
| | 02:20 | Now let's turn to that new addition to
the Google family I mentioned, Google Now.
| | 02:25 | So I'm going to switch back to the
phone to demo this part, and go to Home.
| | 02:30 | You won't find a Google Now icon in
the Google collection, as you can see.
| | 02:35 | Google Now is more integrated than that.
| | 02:37 | To get to Google Now, tap into Google Search.
| | 02:42 | If the keyboard opens up, just swipe it down.
| | 02:45 | Now the first of what Google calls
cards comes up, showing local weather, based
| | 02:50 | on your automatically-gathered location.
| | 02:53 | Essentially, Google Now combines
your location, Search History, Calendar,
| | 02:58 | and other recurring uses of your device to
deliver relevant info to you automatically.
| | 03:04 | If you're concerned about privacy, you
should know that Google Now is an opt-in service.
| | 03:09 | The first time you see it,
| | 03:10 | you're given a brief tour of the
possibilities, and then presented with an
| | 03:14 | option to opt in or not.
| | 03:16 | As you can see, I'm in.
| | 03:17 | Let me show you some of
the other cards available.
| | 03:20 | So I'm going to scroll down to the bottom
of the page and click Show sample cards.
| | 03:27 | There are 10 sample cards here,
ranging from Traffic, to the time back home
| | 03:33 | when you're traveling.
| | 03:34 | Some, like Traffic, are based on your
location. Others, like Flight, are tied to
| | 03:41 | searches you've done.
| | 03:42 | Flight, for example, gives you a
status update of your flight.
| | 03:46 | Each card has its own settings.
| | 03:49 | Let's look at the settings for Sports.
| | 03:53 | I'm currently following
the Yankees and the Giants.
| | 03:57 | If I wanted to add the Lakers, I just
tap Add team, and then enter an L. This
| | 04:03 | will open up a range of different
teams that start with an L, and there's my
| | 04:09 | Los Angeles Lakers.
| | 04:12 | So I'll select that, and now the latest
score will pop up during the next Lakers game.
| | 04:19 | There's tons more functionality built
into Google Now, as is evident when I
| | 04:23 | scroll down the list.
| | 04:25 | If you want to see everything that's
available, just tap Card list under Other
| | 04:30 | cards at the bottom of the sample cards.
| | 04:33 | The more you use Google Search and
related services like Gmail, the more
| | 04:37 | Google Now becomes.
| | 04:39 | Have fun exploring!
| | Collapse this transcript |
| Exploring the versatile high-quality camera and video functionality| 00:00 | Cameras on Smart Phones have become
almost as important as the phones themselves.
| | 00:05 | Jelly Bean brought a number of
improvements to both camera and video
| | 00:09 | functionality, making it far easier to move
between taking pictures and viewing them.
| | 00:15 | Let me open up the camera.
| | 00:16 | When I start the camera, I
have three basic imaging options.
| | 00:20 | Let me tap here to show you the three
possibilities: camera, video, and panorama.
| | 00:27 | I'll tap again to close it.
| | 00:29 | There is also a digital zoom.
| | 00:32 | As I slide the control to the right, it
zooms in, and when I slide to the left, it
| | 00:37 | zooms out, and I can take a shot with one tap.
| | 00:43 | In one corner you can
see the last picture taken.
| | 00:46 | No matter which imaging option I'm using,
I can now go directly to the gallery by
| | 00:51 | swiping from right to left.
| | 00:54 | There's the first image.
| | 00:55 | So let me switch orientation to horizontal.
| | 00:59 | Now if I continue swiping I can go
through my other gallery items, which include
| | 01:04 | a video and a panorama shot.
| | 01:07 | Camera performance has improved greatly as well.
| | 01:12 | Take a look at this next image,
taken a few moments before sunset.
| | 01:16 | If I spread by fingers to zoom in you
can really see some fantastic detail,
| | 01:23 | almost right down to the
sneakers on this jogger.
| | 01:26 | The panorama shot is equally impressive.
| | 01:30 | Let me zoom in a bit, and then I'll
swipe to scroll through the long panorama.
| | 01:37 | Great detail throughout.
| | 01:38 | Let me zoom back out to
move to the next gallery item.
| | 01:44 | Here's a video that
illustrates the zoom feature.
| | 01:48 | [Video]
| | 01:49 | You can see some folks playing on the beach.
| | 01:52 | Ironically, they seem to be taking pictures
too. And there is the last kite of the day.
| | 02:01 | Navigation within the
gallery has been enhanced as well.
| | 02:05 | The gallery goes into filmstrip mode.
| | 02:08 | So I can easily navigate
through all of my images.
| | 02:12 | Inevitably, there will be images
or videos that I don't want to keep.
| | 02:16 | So how do you remove them?
| | 02:17 | When you're in filmstrip mode,
you can do it with a simple swipe up.
| | 02:23 | When I swipe up, the image is flown off
screen, and should you change your mind, it's
| | 02:28 | a single tap to undo that action.
| | 02:30 | Of course, the actual camera and
video specs will vary according to your
| | 02:34 | device, but the software
enhancements in Jelly Bean, for me, really bring
| | 02:38 | imaging into focus.
| | Collapse this transcript |
| Robust web browsing| 00:00 | Web browsing got kicked up a notch with a
variety of enhancements to Google Chrome.
| | 00:05 | Let's take a look at some of them on
the tablet. From the Home screen, I'll tap
| | 00:09 | the Google collection and then tab Chrome.
| | 00:12 | The first thing you'll probably notice
is the effect Project Butter has had on
| | 00:16 | Chrome. As I add a couple of tabs and
then remove them, notice how smooth the
| | 00:23 | animation transitions are.
| | 00:25 | Let me open up the lynda.com
site for my most visited list.
| | 00:30 | I'll also open up another tab, and then
choose NASA's Astronomy Picture of the
| | 00:36 | Day, known to Astronomy Geeks as APOD.
| | 00:41 | Now that I have three tabs open, I can
demonstrate the new swipe technique for
| | 00:45 | navigating between tabs.
| | 00:48 | I'll start on one side of the screen, outside
of the website windows, and then swipe across.
| | 00:54 | As I do the tab switch.
| | 00:56 | I can go part of the way to move to
the next tab, and then if I do it again
| | 01:01 | first tab. Or going back the other way,
I can swipe quickly across the entire
| | 01:07 | screen, and go to my last tab. This Jelly
Bean enhancement really speeds up web browsing.
| | 01:14 | Voice search has been integrated into
chrome for Jelly Bean. Let me demonstrate.
| | 01:19 | I'll click the microphone and then
ask for the w3c website, w3c.org.
| | 01:30 | And there's my listing, and when I
click on it, comes up right away.
| | 01:34 | You can also browse the web without
leaving a trace, via the Incognito tab
| | 01:39 | option, from Settings.
| | 01:41 | So I'll click Settings here,
and then click New Incognito tab.
| | 01:46 | Despite the menu entry, it actually
opens up a whole new window, and once you're
| | 01:51 | on the Incognito window, any site
you visit will not be recorded in your
| | 01:55 | browser or search history.
| | 01:57 | Note the cloak and dagger
dude in the upper left corner.
| | 02:00 | This indicates that it's an Incognito Window.
| | 02:03 | So let's go to an appropriate site.
| | 02:05 | So I entered cia.gov, and it first
goes to the cia.gov mobile site.
| | 02:14 | But what if I wanted to see the full site?
| | 02:16 | Well, let me click Settings again, and
then I can choose Request desktop site,
| | 02:21 | and you can see the browser working,
and it's gone back out to pick up cia.gov,
| | 02:29 | and there is a complete cia.gov site,
ready for your undercover browsing.
| | 02:34 | You'll browse faster, smoother, and
smarter, with the Jelly Bean upgrades
| | 02:39 | in Chrome.
| | Collapse this transcript |
| Near Field Communication with Android Beam| 00:00 | NFC, or Near Field Communication, is
exactly what it sounds like, if you speak tech.
| | 00:06 | When two devices are near
each other, they can communicate.
| | 00:09 | This feature was first introduced in Android 4.0
as Android Beam, and beefed up in Jelly Bean.
| | 00:16 | Now you can easily send images, and
even video, from one device to another.
| | 00:21 | Beam now uses bluetooth to do the file transfer.
| | 00:24 | You need to make sure that your
bluetooth is on on both devices.
| | 00:28 | You'll also want make sure the NFC is
enabled, although it should be by default.
| | 00:33 | To transfer an image, you need to go to
the Gallery. So I am going to Home, and
| | 00:38 | then on my second page,
Gallery, and there's my image.
| | 00:43 | The next up is to hold the two devices
back to back, and in a second, you will
| | 00:50 | hear a vibration and see a message,
Touch to beam. When you see that, tap the
| | 00:54 | picture, you will get a
confirmation tone from the device,
| | 01:01 | and now, if you go to the Notifications on
the tablet quick enough, you'll see an
| | 01:06 | incoming Beam message, and once that
finished, you'll see it says Beam complete,
| | 01:13 | touch to view. So let's tap
that, and there you have it.
| | 01:16 | Wireless transfer via the Android Beam.
| | Collapse this transcript |
|
|
ConclusionNext steps| 00:00 | I hope you got a lot out of Android 4.1
SDK Jelly Bean New Features, and find it
| | 00:06 | inspiring in your app development.
| | 00:09 | Be sure to check out the other Android
related courses in the lynda.com library.
| | Collapse this transcript |
|
|