Android studio code problem | Computer Science homework help

I have finish most of contents, but I still have some code problem.

I do not know how to use the button on the second screen to connect these websites.

Please use Android Studio open the document I attached, and the two photos are main problem.

Please base on my way to complete it, Thanks!!