If I understand it correctly, you’re trying to build a service which can be accessed through an Android app? If so, note that you can only use InfinityFree for hosting websites, not API services. We have security systems in place to make sure that only clients which support Javascript and cookies can access scripts on your account.
Hosting an API is only possible on premium hosting.