Hi,

I would like to ask what is the proper way to get the current activity 
through the
UI Automator framework.  I know that there exists a method to do this:
UiDevice.getCurrentActivityName 
<http://developer.android.com/reference/android/support/test/uiautomator/UiDevice.html#getCurrentActivityName%28%29>,
 
but this method is deprecated. I tried to use it,
but the results in some apps were wrong.. I know that UI Automator 
framework is
for writing *black box* like automated tests that are not relying on the 
application under
test and its characteristics, but I would like to know this information in 
order to map a
new appearing screen to a specific activity each time.. Do you know what is 
the proper
way to get this information?

Thank you,
Thanasis 

-- 
You received this message because you are subscribed to the Google Groups 
"adt-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to