Got a YouTube account?

New: enable viewer-created translations and captions on your YouTube channel!

English subtitles

← Writing The Code

Get Embed Code
4 Languages

Showing Revision 3 created 05/25/2016 by Udacity Robot.

  1. Okay, so now we have the lay out for
    our activities as designed, and
  2. our manifest and
    grader files are set up.
  3. So the next thing to do
    is to write the code.
  4. If you haven't done so already,
    open up the main activity and
  5. at the top you'll see there
    are a number of imports.
  6. We have to add a few more.
  7. Let's take a look at what they'll be,
    I'll just paste them in.
  8. So you can see here, these are the
    imports that we're going to be using.
  9. Things such as the login utility,
  10. the text View control that
    we've seen earlier on.
  11. A location object that we're using for
    determining location details, and
  12. then all this stuff that's going to
    be used by the location services;
  13. connection results, API client,
    connection call backs,
  14. the on connection failed listener.
  15. And of course the location
    services themselves.
  16. So these provide all the classes
    that we're going to be using, and
  17. next we're going to edit
    main activity code itself.
  18. We can see that the basic one that we
    have just extends action bar activity,
  19. but we need a few more interfaces.