Wait for home button now keys into the home button LinearLayout tag where a hash map is set with an available key with true/false value - the wait waits for a true value or a timeout