mysql query not reflecting from android apk

I’ve setup a small website in infinityfree for testing purpose of gps data logging. My mysql database and small php script works from browser url but not working using android apk. which used “HttpURLConnection” in activity. The activity shows “ok” msg. but data is not reflecting in table, while the same url via browser inserts data in the table.

I cant figure out this behavious. Pl. tell me what is the problem, may be port issue ? or anything else.

The issue is that InfinityFree provides website hosting only. Requests from API clients and most automated programs are bots, you can only access your website through a web browser.