How to get all elements of mobile..?

Hello,

I am automating Android App on Android emulator.

I am not able to get all elements of mobile but instead I am getting text of element rather than getting the element.
How can I solve this?