Is it possible to use appium and selenium together in one test case?

I would like to test the interaction between android and the website. Can i do that?

Why are you trying to switch the context of your Appium driver? You should have an Appium driver instance to interact with the phone and a Selenium WebDriver or RemoteWebDriver instance to connect to your computer’s browser.