On Jun 4, 12:32 pm, roger <[email protected]> wrote:
> I am trying to start a service in the application, and then get the top
> foreground activity, get the UI from the activity and the position for
> each UI element.
> Then parse the log and getevent
> is it possible to get the ui operation with the above three conditions.

This line of questioning is only on topic for this group if it is your
own application which you want to do this to.

Likely the most straightforward way of doing this to your own
application is to place calls to a reporting subsystem throughout your
code (and have a way to nullify them in the release version, where you
turn all of this off).

Another way to do this would be to wrap all of the common android
widgets you use with your own versions which report what they are
asked to do then invoke the superclass method.

Or you can try to build non-cooperative monitoring into your
application where you do something like find the top of the view
hierarchy and then iterate down through the tree, but you are likely
to find places in the overall task where you need information that is
not exposed by an sdk api.  You might be able to learn how to find
that information by reading the sources for a particular platform
version, but doing so would be non-portable and off-topic for this
group.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to