Skip to main content

🚀 In our NEW AI Bootcamp you'll build a working app in 28 days, no experience required. Free to all subscription levels.

Join the Treehouse affiliate program and earn 25% recurring commission! 🤑

✨ Earn college credits in Cybersecurity, JS, HTML, CSS and Python

  • Treehouse Logo
    • For Individuals
    • For Businesses
    • For Schools
    • For Libraries
    • For Military
    • All Courses
    • Tracks
    • AI Bootcamp
    • College Credit
    • Techdegree Bootcamps
    • Front End Development
    • Full Stack JavaScript
    • Code Adventures
    • Discord
    • Forum
    • Success Stories
    • Treehouse Links
    • 100 Days of Code
    • Explore
    • Career Toolbox
    • Free Treehouse Near Me
    • Affiliates
    • Blog
    • Support
    • About
    • Learn
    • Beginner's Guide to Coding
    • Data Analysis with SQL & Python
    • Front-End Web Development
    • Python Programming Basics
    • Techdegree Bootcamp Overview
    • UX Design Fundamentals
    • AI Tools for Beginners
  • For Individuals For Businesses For Schools For Libraries For Military
  • All Courses Tracks AI Bootcamp College Credit
  • Techdegree Bootcamps Front End Web Development Full Stack JavaScript
  • Code Adventures Discord Forum Success Stories Treehouse Links 100 Days of Code
  • Explore Career Toolbox Free Treehouse Near Me Affiliates Blog Support About
    Learn Beginner's Guide to Coding Data Analysis with SQL & Python Front-End Web Development Python Programming Basics Techdegree Bootcamp Overview UX Design Fundamentals AI Tools for Beginners
  • Sign In
  • Free Trial
Instagram Twitter Facebook YouTube LinkedIn
Loading banner... Start your free trial at Treehouse
    • Newest
      • Newest
      • Active
      • Unanswered
      • Featured
    • All Topics
      • All Topics
      • • General Discussion
      • • AI
      • • APIs
      • • Coding for Kids
      • • College Credit
      • • Computer Science
      • • CSS
      • • Data Analysis
      • • Databases
      • • Design
      • • Development Tools
      • • Digital Literacy
      • • Game Development
      • • Go Language
      • • HTML
      • • Java
      • • JavaScript
      • • Learning Resources
      • • Machine Learning
      • • No-Code
      • • PHP
      • • Professional Growth
      • • Python
      • • Quality Assurance
      • • React
      • • Ruby
      • • Security
      • • Swift
      • • Vibe Coding
  • TOL REC
    PLUS
    TOL REC
    Courses Plus Student 11,877 Points

    Task 4 problem

    Posted July 22, 2020 10:33pm by TOL REC
    TOL REC
    Courses Plus Student 11,877 Points
    • Android
    • Threads and Services
    • But Wait There's More!
    • Messengers and Handlers: Activity

    0 Answers

  • Kevin Haube
    Kevin Haube
    12,265 Points

    Not Recognizing Inner Class

    Posted September 23, 2019 11:29pm by Kevin Haube
    Kevin Haube
    12,265 Points
    • Android
    • Threads and Services
    • But Wait There's More!
    • Messengers and Handlers: Activity

    0 Answers

  • Joe Rimuka
    Joe Rimuka
    5,823 Points

    Threads and Services

    Posted September 17, 2019 11:53pm by Joe Rimuka
    Joe Rimuka
    5,823 Points
    • Android
    • Threads and Services
    • But Wait There's More!
    • Messengers and Handlers: Activity

    1 Answer

  • sai maddukuri
    sai maddukuri
    9,108 Points

    i cant understand the question please tell me the answer for this question please help

    Posted April 28, 2019 5:16am by sai maddukuri
    sai maddukuri
    9,108 Points
    • Android
    • Threads and Services
    • But Wait There's More!
    • Messengers and Handlers: Activity

    0 Answers

  • Glen Chiridza
    Glen Chiridza
    8,441 Points

    Handle the Message in GeolocationService, and use the 'replyTo' property to send a new Message back to MainActivity with

    Posted March 27, 2019 11:41am by Glen Chiridza
    Glen Chiridza
    8,441 Points
    • Android
    • Threads and Services
    • But Wait There's More!
    • Messengers and Handlers: Activity

    0 Answers

  • Glen Chiridza
    Glen Chiridza
    8,441 Points

    Send a Message to GeolocationService from MainActivity. Include MainActivity's Messenger in the Message as the 'replyTo'

    Posted March 27, 2019 10:07am by Glen Chiridza
    Glen Chiridza
    8,441 Points
    • Android
    • Threads and Services
    • But Wait There's More!
    • Messengers and Handlers: Activity

    0 Answers

  • Gracious Chinyama
    Gracious Chinyama
    3,292 Points

    Create an inner Handler class for MainActivity, and create a new Messenger field using this class.

    Posted September 27, 2018 8:51am by Gracious Chinyama
    Gracious Chinyama
    3,292 Points
    • Android
    • Threads and Services
    • But Wait There's More!
    • Messengers and Handlers: Activity

    1 Answer

  • Patrick Coyne
    Patrick Coyne
    5,026 Points

    ReplyTo from Service to activity

    Posted November 7, 2017 10:43pm by Patrick Coyne
    Patrick Coyne
    5,026 Points
    • Android
    • Threads and Services
    • But Wait There's More!
    • Messengers and Handlers: Activity

    1 Answer

  • Navrozbek Akhmedov
    Navrozbek Akhmedov
    1,106 Points

    How to call setCoordinates(int lat, int long) from within MainActivity?

    Posted May 28, 2017 8:26pm by Navrozbek Akhmedov
    Navrozbek Akhmedov
    1,106 Points
    • Android
    • Threads and Services
    • But Wait There's More!
    • Messengers and Handlers: Activity

    0 Answers

  • princess mudyahoto
    princess mudyahoto
    18,502 Points

    THREADS AND SERVICES

    Posted April 21, 2017 2:36pm by princess mudyahoto
    princess mudyahoto
    18,502 Points
    • Android
    • Threads and Services
    • But Wait There's More!
    • Messengers and Handlers: Activity

    0 Answers

  • sean tatenda jack
    sean tatenda jack
    6,127 Points

    The goal is to call 'setCoordinates(int lat, int long)' inside MainActivity using the coordinates provided by Geolocati

    Posted April 21, 2017 9:08am by sean tatenda jack
    sean tatenda jack
    6,127 Points
    • Android
    • Threads and Services
    • But Wait There's More!
    • Messengers and Handlers: Activity

    0 Answers

  • princess mudyahoto
    princess mudyahoto
    18,502 Points

    threads and services

    Posted April 12, 2017 1:09pm by princess mudyahoto
    princess mudyahoto
    18,502 Points
    • Android
    • Threads and Services
    • But Wait There's More!
    • Messengers and Handlers: Activity

    1 Answer

  • kunalshitut
    kunalshitut
    5,872 Points

    Inner class created yet error

    Posted June 19, 2016 2:35pm by kunalshitut
    kunalshitut
    5,872 Points
    • Android
    • Threads and Services
    • But Wait There's More!
    • Messengers and Handlers: Activity

    1 Answer

  • lubossytensky
    lubossytensky
    3,160 Points

    I am really sorry but i don't know how to reply mesage in 4 step

    Posted May 2, 2016 11:10am by lubossytensky
    lubossytensky
    3,160 Points
    • Android
    • Threads and Services
    • But Wait There's More!
    • Messengers and Handlers: Activity

    0 Answers

  • Trainer Workout
    Trainer Workout
    22,341 Points

    How to create an inner Handler class just like we did with GeolocationService.

    Posted April 9, 2016 12:41am by Trainer Workout
    Trainer Workout
    22,341 Points
    • Android
    • Threads and Services
    • But Wait There's More!
    • Messengers and Handlers: Activity

    3 Answers

  • Hay Abadi
    Hay Abadi
    2,625 Points

    sending Messages from service to Activity

    Posted March 30, 2016 3:26pm by Hay Abadi
    Hay Abadi
    2,625 Points
    • Android
    • Threads and Services
    • But Wait There's More!
    • Messengers and Handlers: Activity

    1 Answer

Posting to the forum is only allowed for members with active accounts.
Please sign in or sign up to post.

Techdegree

  • Front End Web Development
  • Full Stack JavaScript
SEE ALL

Tracks

  • Learn to Code for Beginners
  • Beginning Python
  • Beginning SQL
  • Beginning Java
SEE ALL

Courses

  • JavaScript Basics
  • Intro to HTML & CSS
  • Python Basics
  • CSS Layout
SEE ALL

About Us

  • About
  • Blog
  • Community
  • Stories
  • Contact
  • Gift Card

Explore

  • Plans
  • Affiliates
  • Perks
  • Shop
  • Free Treehouse Near Me
  • Treehouse for Libraries
  • Treehouse for Businesses

Treehouse is an online technology education platform founded in 2011. Treehouse offers more than 700 self-paced, video-based courses in web development, programming, data analysis, design, and AI, plus two project-based bootcamp programs in Front End Web Development and Full Stack JavaScript. Individual Treehouse plans start at $25 per month and include a 7-day free trial. Treehouse serves individual learners, businesses, schools, and public libraries. Cardholders at participating U.S. public libraries can use Treehouse for free. Select Treehouse courses, offered with University Pathways International, are recommended for college credit by ACE and NCCRS. Treehouse learners earn digital certificates for completed Tracks.

Terms & Conditions · Privacy · © 2026 Treehouse Island, Inc.
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
  • Instagram
  • Discord