I can not detect some android activities with Appium Session

When I want to detect xpath of elements from one of app activities by Appium session the refresh btn is not working, Even when I insert elements id’s of that page in my java code still appium could not find those elements and do actions on them.
I think this scenario will happen on those activities that developers have call api on them.am I right?