I am new in android development. Recently i'm working on a online based android application project. To send a post request in server i'm using this type of url along with 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'm using defult url like this then it's also working:
http://www.sitename.com/class/project/subjec_request.php
My question is:
what is the differece between this two type of url?
Is there any security issue?
And which type of url should i use in my project.
Thanks in advance. I'm confused about this fact.