Instrumented Android application through eclipse

I have an application with non standard UI elements, thus i am taking the instrumented mode route.
When i launch the application through Appium Studio V11.4.83 then go to the object spy and locate the element of interest i do not see the property “text” i am looking for, where as if i go to the api call functionality and click the test button after selecting getText() method it returns that expected output.

i need to get the same functionality from eclipse so far i haven’t been successful.

below is my setup function:

dc.setCapability(“instrumentApp”, true);
this.dc.setCapability(MobileCapabilityType.UDID, deviceSN);
this.dc.setCapability(AndroidMobileCapabilityType.APP_PACKAGE, appPackageName);
this.dc.setCapability(AndroidMobileCapabilityType.APP_ACTIVITY, “.activity.SplashActivity”);
this.driver = new AndroidDriver(new URL(“http://localhost:4723/wd/hub”), dc)

this is how i am retrieving the element text property:

MobileElement obj = testSetup.GetDriver().findElement(By.xpath("*******"));
System.out.println("" + obj.getText());

just to clarify the runNativeAPICall works for you from the UI of appium studio? and you want to invoke the API call from eclispe?