Using Appium without a server

I want to use Appium NOT for testing purpose but for my apps business logic. So from within my app (eg say MainActivity) I want to hit a website and click a few buttons using Appium. The app should be self sufficient without the need to run any another server or process. Is this possible using appium? Its like just using AndroidWebDriver without any server. Any inputs will be helpful.

Eg pseudo code

chat=driver.find_element_by_xpath("/html/somepath")
chat.click()
time.sleep(2)      
search=driver.find_element_by_xpath("/html/body/v/label/input")
search.click()

Questions

  • Which java lib from appium provides these apis?

I looked at Appium java client but looks like it can only talk to Appimum server
https://appium.github.io/java-client/io/appium/java_client/android/AndroidDriver.html

What am looking for us AndoridDriver which uses binaries/sdk from android phone device itself. This kind of apis were available in selenium-android-driver. But its no longer maintained.
https://mvnrepository.com/artifact/org.seleniumhq.selenium/selenium-android-driver