I am new to Android development. I have recently been working on online Android app projects. To send a post request to the server, I use this type of URL along with the ip address :
public void makeRequest() { InsertData task1 = new InsertData(); Log.d("Arif", "working on pre"); task1.execute(new String[]{"http://209.151.146.23/class/project/subject_request.php"}); }
When I use a defult url like this, then it also works:
http://www.sitename.com/class/project/subjec_request.php
My question is:
What is the difference between these two types of URLs?
Is there a security issue?
And what type of url should use in my project.
Thanks in advance. I am confused by this fact.
Yeahia2508
source share