0

I have one android application to be made. In the Registration process i have to fill in two fields

  • Phone number
  • Name

Along with these two fields i have to also send my deviceid, current time and OS version dynamically.

How can i do so?

My Web Service is http://frapp.badoniya.com/webservices/register.php?username=Vijay%20&deviceid=12345&mobile=98XXXXXXXX&platform=Android&os_version=4.0

Please give me a step wise solution. Because i am very new in programming.

Ragunath Jawahar
  • 19,513
  • 22
  • 110
  • 155

2 Answers2

0

you have to use an AsyncTask and inside the async task you can use HTTPPost or HTTPGet requests to call a webservice using parameters

Malek Hijazi
  • 4,112
  • 1
  • 26
  • 31
0

Use an AsyncTask to achieve what you are looking for. Here are few examples on how to use an AsyncTask, Send a GET request and Sending a POST request. For this scenario you must send a GET request.

GET Request
Example 1
Example 2

POST Request
Example 1

AsyncTask
Example 1

Community
  • 1
  • 1
Ragunath Jawahar
  • 19,513
  • 22
  • 110
  • 155