简体   繁体   中英

Send form (AJAX) in android and receive JSON response

The idea is duplicate on android this web http://www.telekino.com.ar/ In the site there is a form to check if your lottery ticket won

在此处输入图片说明

According to other Post, the site uses the ajax to contact the webservice and get the data.

I dont know where start, the only step I can do is the layout. ( Three EditText for the three values needed to send the form, and one button to start the process) then I am lost. How i continue? What I need to use to send this values and receive the response.?

Is possible to duplicate on the app this request?

I'm doing a http request here and in my success method I get a response saved in the variable "data".

$http({ method: 'GET', url: 'http:/****.**/api/gebruikers?email=' + $scope.email + '&wachtwoord=' + $scope.wachtwoord }).success(function (data) {
                // variable "data" is the JSON response I recieve, it is a JSON string.

            });

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM