How to access Activity Object in Appium Testcase

I get driver.currentActivity(); return string .

So that activity object can not access.