Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6846207
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T00:35:36+00:00 2026-05-27T00:35:36+00:00

I’m trying to understand what happens when a button is clicked in android. So

  • 0

I’m trying to understand what happens when a button is clicked in android. So I set up a couple of break points for a simple button click. The picture shows what happens when a button is clicked my questions are: (GUI generated events are events that are generated as a result of interaction with the gui for example Button Clicks, editing text etc…)

1- Is Looper.loop() the main loop for the application or the OS looper ?

2- Where does ViewRootImpl(handler).dispatchMessage(Message) reside? Application or OS?

3- Can I intercept GUI generated events in the main looper ? if yes then how?

4- Can we safely assume that all GUI generated events are handled in ViewRootImpl(handler).handleCallback(Message)?

enter image description here

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T00:35:37+00:00Added an answer on May 27, 2026 at 12:35 am

    Is Looper.loop() the main loop for the application or the OS looper ?

    I don’t know what you think the “OS looper” is. The Looper runs in your process, if that’s what you mean.

    Where does ViewRootImpl(handler).dispatchMessage(Message) reside? Application or OS?

    I don’t know what you think the “OS” is in this context. ViewRootImpl is a Dalvik-compiled class that is loaded into your Dalvik VM and its code executes within your process. Otherwise, you would not be able to see it in your stack trace.

    Can I intercept GUI generated events in the main looper ?

    Only by modifying the firmware to replace various classes like ViewRootImpl with your own code.

    Can we safely assume that all GUI generated events are handled in ViewRootImpl(handler).handleCallback(Message)?

    I certainly would not make that assumption. For example, not all applications use the widget framework (e.g., games).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to understand why so much Rails development happens on Macs? Or is
I am trying to understand what happens during race conditions on the Google AppEngine
I am trying to understand what happens behind the scenes of a grails url
Trying to understand an fft (Fast Fourier Transform) routine I'm using (stealing)(recycling) Input is
Trying to understand the options for will_paginate's paginate method: :page — REQUIRED, but defaults
Trying to understand Ruby a bit better, I ran into this code surfing the
Trying to understand something. I created a d:\svn\repository on my server. I committed folders
After trying to understand why client code is not rendered in a page (injected
I trying to understand if a isset is required during form processing when i
Just trying to understand that - I have never used it before. How is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.