Native Mobile App - Java Client - Get Element Xpath

Hi,

Is there a way to get Xpath of a Native Mobile App element using appium java client. I was able to find lots of information on how to find an element using Xpath, but couldn’t find any information on how to construct the Xpath itself. I understand we can construct this using ID/Name/AccessibilityID or other attributes, but I would avoid it if its something already available. This would be something like viewing the Xpath using appium desktop inspector.

Can anyone please help me point in the right direction?

Thanks,
Vikram