Click on the screen based on the value of a parameter

I am writing a test in android where there is a view that allows you to enter a key, this value is stored in a parameter. Now I need to click on the screen based on the value saved in the parameter.