bhadresh Posted November 30, 2017 Posted November 30, 2017 I've setup free website with heliohost.org. Though the website works well from browser, it is not working from android apk through 'HttpURLConnection' Actually the page that updates mysql database is not working. I want to know that this free hosting allow us to connect mysql from android apk ? Quote
Krydos Posted November 30, 2017 Posted November 30, 2017 Have you enabled remote mysql in cpanel? Quote
bhadresh Posted November 30, 2017 Author Posted November 30, 2017 Yes, Works in local pc with wamp, works from any browser (pc or mobile) Though not working from a android apk which call the php script. Quote
Krydos Posted November 30, 2017 Posted November 30, 2017 What is the error message? And to answer your question more directly: no, android apps are not blocked in any way from accessing our servers. Quote
bhadresh Posted November 30, 2017 Author Posted November 30, 2017 Yes, Android apps are not blocked, It's working now. Actually I was using a php with html & jquery stuff for some test purpose and was not worked. The target script was called from $(document).ready() event and $_GET parameter was passed to. I've changed the code and use pure php script that directly connected to mysql database and insert records from $_GET para and it works. Thanks Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.