Generate xpath for elements

Hi,

Can anyone please give a brief idea on how to manually create a xpath by using android sdk UIAutomator viewer, I tried a lot but not able to understand the basic concept.

Can anyone help please?

http://qxf2.com/blog/identify-ui-elements-mobile-apps/