YouTube

Got a YouTube account?

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

English subtitles

← Implementing The Intent Service

Get Embed Code
4 Languages

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

  1. To implement the intent service,
  2. there are a number of steps that
    you're going to need to follow.
  3. The first thing to do is to create
    a GeoFenceTransitionsIntentService
  4. class and have this extend
    the IntentService base class.
  5. You'll then need to add a constructor
    and add an onCreate override to this.
  6. Generally these will be empty, but
    in the constructor you could call super
  7. tag, and in the onCreate you could just
    pass onCreate up to super as well.
  8. Finally, you'll need to create
    an override for onHandleIntent.
  9. Now this takes an intent as
    a parameter and returns void.
  10. Once you've created all this stub code,
    check this box when you're done.