Easy-to-follow video tutorials help you learn software, creative, and business skills.Become a member

Viewing and testing the mobile site on emulators

From: Mobile Web Design & Development Fundamentals

Video: Viewing and testing the mobile site on emulators

All right! Up until now, we have been looking at the sample site in desktop browsers and been simulating the mobile screen size by changing the window size. So what we are going to do now is actually take a look at the real site in the emulators to see how the sites work and respond on simulated devices. That will give us the ability to test things like layout and soft keyboard response and all that kind of stuff. So once again, here is the web site in the desktop screen, and you can see that this is the finished version of the homepage, and here's the Tour page with tour information, and here's the Contact page.

Viewing and testing the mobile site on emulators

All right! Up until now, we have been looking at the sample site in desktop browsers and been simulating the mobile screen size by changing the window size. So what we are going to do now is actually take a look at the real site in the emulators to see how the sites work and respond on simulated devices. That will give us the ability to test things like layout and soft keyboard response and all that kind of stuff. So once again, here is the web site in the desktop screen, and you can see that this is the finished version of the homepage, and here's the Tour page with tour information, and here's the Contact page.

So let's go see how this looks in the emulators. I am going to switch over to the Android and Windows phone emulators, and then we will take a look at how it works in the Mac on the iPhone. So here is my Android emulator, and I am going to click on the logo up here to get it to go back to the homepage, and the homepage will load up. Okay, so here we are in the homepage, and let me scroll down, we can see that we're getting the right logo. The nav bar is vertical and styled differently, just like we want it to be. Here is the Tour Spotlight, and the Tour Spotlight is followed by the Monthly Specials, so the video element is not showing up here.

And so we will just go ahead and scroll on down. You can see that the single-column layout is here, and we'll scroll all the way down. That looks pretty good. All right, let's go back and take a look at our redesigned Tours page. So let's go back up to the top, and I'm going to click on Tours, and this will take us to the Tours page. Okay, here's the Tours page, so let's go ahead and scroll down. And you can see we now have our single-column layout, which looks great, and we'll scroll down to the tours.

And remember, the tours start out with the text hidden, so what I am going to do is click on one, and you can see that when I click on it, the hover effect is being simulated by the emulator, which reveals the text for that particular tour. So I can scroll and I can have a look, and if I don't want to see it any more, I can go scroll on something else, and I'll take a look at this tour. So that seems to be working just fine, so let's scroll back up to the top, and we will take a look at the updated contact form.

I'll click on the contact form right here. That will take us to the Contact page. All right, so here are on the Contacts page, let's scroll down and take a look at the form, because that's the most important part of this page. So there's the Personal Information. You can see that the labels are now top aligned with the related form fields in the form input types. We are getting our placeholder text right here. I am going to click on this field, and we will see the keyboard come up, right, there is the keyboard.

So let's take a look at what happens when we click in some of the fields that we put special input types on. So there's the email address, and it looks like in this case the Android emulator doesn't give us the email-optimized keyboard, but let's take a look at the Phone number. So you notice put the focus on the Phone field, the soft keyboard changed to be optimized for phone input. So that's the value of using those new HTML5 form input types. So that looks pretty good. I think it looks pretty much the way we wanted it to.

Let's go ahead and scroll down and take a look. Here is the check boxes. You can see check boxes are no longer in three columns-- it's one single column. And here's our field for, "When we are thinking about touring," and I'll put the focus in there and you can see that the keyboard changes back to the text. And for entering comments, I get the keyboard. And so, this looks like it's working pretty well. Okay, let's switch over to Windows Phone. That's this guy over here. So I am going to click on the icon, which is being displayed with our data URI now.

And I'll scroll down, so here's our single-column layout. There is the Tour Spotlight. Okay, so the homepage looks pretty good. Let's go ahead and scroll on up, and we'll click on the Tours page. Okay, here's our Tours page. We will scroll down. Okay, here's our Tour. Let's try that clicking. So if I go ahead and click, you'll see that I am getting the tour information from each one of these guys, and that's exactly what we expected.

Okay, so that looks good for the Tours page. All right! Let's go back to the Contact page. Here is the Contact page. Let's take a look at the form, and you can see here the form is also laid out properly. The labels are now on top of the elements, and when I click, I am going to get the keyboard for that particular element. I will click here in the Email field. And it looks like the Windows Phone emulator is not yet providing customized keyboards for different data types, but that's okay.

And here's our check boxes, and everything is aligned in one column, and the Comments field is also the right size. Okay, so things look good on Android and they look good on Windows Phone. Let's go ahead and take a look at things on the iPhone Simulator now. Okay, so here we are on the Mac, and we're looking at the iPhone Simulator. So here is the homepage for Explore California, and I fired this up from my localhost web server. So I'm here on the homepage, and let's scroll down and take a look at the homepage.

So here's our nice single-column layout, all the way down, looks like that's great. All right, let's scroll back up to the nav bar, so we can see that our data URI-based logo is showing up, and here's our vertical navigation bar. Let's go ahead and click on the Tours page, and here's the Tours page, so let's scroll down. So I am going to scroll down to the Tours, and of course we want to make sure that that pseudo-hover effect is working correctly, so I am going to click on Backpack California. You can see that's working. The text gets revealed, that's great. And I am going to do the same thing here.

Okay, that looks pretty good too, and let's try one more. So it looks like that's working just fine, so let's go ahead and take a look at the Contact page. Okay, here's the Contact page. Let's scroll down to the form, so we see that we are getting our single-column layout here, the image is gone, and here is our Contact form, and the required fields have a red bold side there. Let's go ahead and click in the Name field. And here you are seeing the real benefit of having those top-aligned form fields, because you see that when clicked in the name field here on the iPhone, the UI zoomed in, so I can type into this field, and if his name label was off to left-hand side over here, I wouldn't be able to see it any more.

So, we can see there are labels are top aligned the way they are supposed to be, and I click in the Email field, and you can see that when I click in the Email field, the iPhone is switching the keyboard to be the keyboard optimized for email input. And I'm going to do the same thing with Phone, and you can see that the Phone keyboard now shows up, and this is because again, I am using those new HTML5 input types for things like email and phone. And I think if I scroll down to the Zip code, that's a number--yep, that's the number keyboard there. So that all appears to be working well.

Let's zoom back out and click Done, and let's go ahead and take a look at the check boxes. Yeah, the check boxes are all lined up in single file they way they should be, and it looks like there is no Date field here on the iPhone, that's okay. So I will zoom back out. And the comments field is also being sized correctly, and you can see it takes the full screen when I click on it. So it looks like the behavior that we are getting is right on the iPhone, so at this point in the workflow, we would go ahead and start looking at things on real devices.

Show transcript

This video is part of

Image for Mobile Web Design & Development Fundamentals
Mobile Web Design & Development Fundamentals

46 video lessons · 24618 viewers

Joe Marini
Author

 
Expand all | Collapse all
  1. 2m 48s
    1. Welcome
      1m 2s
    2. Using the exercise files
      1m 46s
  2. 29m 25s
    1. Understanding the mobile context
      8m 5s
    2. A survey of mobile sites
      11m 44s
    3. Targeting mobile browsers
      4m 31s
    4. Previewing a complete mobile site
      5m 5s
  3. 27m 20s
    1. Designing for one web
      3m 43s
    2. Using well-defined web standards
      3m 45s
    3. Designing mobile-friendly pages
      3m 40s
    4. Being crisp, clean, and succinct
      5m 45s
    5. Minimizing input where possible
      6m 47s
    6. Focusing on the core scenarios
      3m 40s
  4. 1h 13m
    1. Installing the tools
      3m 52s
    2. Setting up a local web server
      9m 13s
    3. Installing device emulators
      17m 5s
    4. Using device emulators
      13m 9s
    5. Downloading Modernizr and Mobile Boilerplate
      6m 22s
    6. Building a first mobile web page
      5m 43s
    7. Developing mobile pages with desktop browsers
      8m 6s
    8. Exploring useful mobile web development resources
      10m 23s
  5. 53m 26s
    1. Reviewing mobile markup languages
      5m 10s
    2. Understanding content adaptation approaches
      10m 32s
    3. Controlling the viewport layout
      12m 50s
    4. Designing forms
      13m 30s
    5. Using CSS media queries
      11m 24s
  6. 1h 11m
    1. Detecting client capabilities with script
      10m 8s
    2. Caching information with local storage
      9m 16s
    3. Determining position with geolocation
      12m 52s
    4. Minimizing HTTP requests with data URLs
      7m 39s
    5. Understanding user agent detection
      9m 8s
    6. Using server-side detection with PHP
      6m 52s
    7. Using server-side detection with ASP.NET
      4m 54s
    8. Using HTML5 Boilerplate for mobile
      11m 6s
  7. 39m 22s
    1. Measuring performance
      7m 41s
    2. Creating full-screen web apps
      6m 30s
    3. Customizing the user interface
      5m 14s
    4. Detecting orientation changes
      3m 58s
    5. Detecting device movement
      5m 21s
    6. Using touch events
      10m 38s
  8. 47m 14s
    1. Taking a look at the finished site
      7m 40s
    2. Examining the header and background image style on the Home page
      10m 10s
    3. Examining the hover effect and layout styles on the Tours page
      6m 42s
    4. Examining mobile forms on the Contact page
      9m 45s
    5. Viewing and testing the mobile site on emulators
      8m 11s
    6. Viewing the site on devices
      4m 46s
  9. 2m 34s
    1. Goodbye
      2m 34s

Start learning today

Get unlimited access to all courses for just $25/month.

Become a member
Sometimes @lynda teaches me how to use a program and sometimes Lynda.com changes my life forever. @JosefShutter
@lynda lynda.com is an absolute life saver when it comes to learning todays software. Definitely recommend it! #higherlearning @Michael_Caraway
@lynda The best thing online! Your database of courses is great! To the mark and very helpful. Thanks! @ru22more
Got to create something yesterday I never thought I could do. #thanks @lynda @Ngventurella
I really do love @lynda as a learning platform. Never stop learning and developing, it’s probably our greatest gift as a species! @soundslikedavid
@lynda just subscribed to lynda.com all I can say its brilliant join now trust me @ButchSamurai
@lynda is an awesome resource. The membership is priceless if you take advantage of it. @diabetic_techie
One of the best decision I made this year. Buy a 1yr subscription to @lynda @cybercaptive
guys lynda.com (@lynda) is the best. So far I’ve learned Java, principles of OO programming, and now learning about MS project @lucasmitchell
Signed back up to @lynda dot com. I’ve missed it!! Proper geeking out right now! #timetolearn #geek @JayGodbold
Share a link to this course

What are exercise files?

Exercise files are the same files the author uses in the course. Save time by downloading the author's files instead of setting up your own files, and learn by following along with the instructor.

Can I take this course without the exercise files?

Yes! If you decide you would like the exercise files later, you can upgrade to a premium account any time.

Become a member Download sample files See plans and pricing

Please wait... please wait ...
Upgrade to get access to exercise files.

Exercise files video

How to use exercise files.

Learn by watching, listening, and doing, Exercise files are the same files the author uses in the course, so you can download them and follow along Premium memberships include access to all exercise files in the library.


Exercise files

Exercise files video

How to use exercise files.

For additional information on downloading and using exercise files, watch our instructional video or read the instructions in the FAQ.

This course includes free exercise files, so you can practice while you watch the course. To access all the exercise files in our library, become a Premium Member.

Are you sure you want to mark all the videos in this course as unwatched?

This will not affect your course history, your reports, or your certificates of completion for this course.


Mark all as unwatched Cancel

Congratulations

You have completed Mobile Web Design & Development Fundamentals.

Return to your organization's learning portal to continue training, or close this page.


OK
Become a member to add this course to a playlist

Join today and get unlimited access to the entire library of video courses—and create as many playlists as you like.

Get started

Already a member?

Become a member to like this course.

Join today and get unlimited access to the entire library of video courses.

Get started

Already a member?

Exercise files

Learn by watching, listening, and doing! Exercise files are the same files the author uses in the course, so you can download them and follow along. Exercise files are available with all Premium memberships. Learn more

Get started

Already a Premium member?

Exercise files video

How to use exercise files.

Ask a question

Thanks for contacting us.
You’ll hear from our Customer Service team within 24 hours.

Please enter the text shown below:

The classic layout automatically defaults to the latest Flash Player.

To choose a different player, hold the cursor over your name at the top right of any lynda.com page and choose Site preferencesfrom the dropdown menu.

Continue to classic layout Stay on new layout
Exercise files

Access exercise files from a button right under the course name.

Mark videos as unwatched

Remove icons showing you already watched videos if you want to start over.

Control your viewing experience

Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.

Interactive transcripts

Click on text in the transcript to jump to that spot in the video. As the video plays, the relevant spot in the transcript will be highlighted.

Are you sure you want to delete this note?

No

Your file was successfully uploaded.

Thanks for signing up.

We’ll send you a confirmation email shortly.


Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

Keep up with news, tips, and latest courses with emails from lynda.com.

Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

   
submit Lightbox submit clicked
Terms and conditions of use

We've updated our terms and conditions (now called terms of service).Go
Review and accept our updated terms of service.