Consuming a PHP Webservice

Asked

Viewed 209 times

0

I set up a Webservice in PHP and need to know how to consume it, whenever I do a search on it it returns me like this:

All Alerts:

get_all_alerts.php

{"table_alerts":[{"id":"1",
                      "category":"Visitante",
                      "name":"Rosana",
                      "city":"Sao Paulo",
                      "description":
                      "Veio tirar ferias...",
                      "created_at":"2015-02-25 16:53:23"},
                  {"id":"2",
                      "category":"Visitante",
                      "name":"Sergio",
                      "city":"Santa Cruz",
                      "description":"Mudou de Cidade",
                      "created_at":"2015-02-25 16:54:51"}],"success":1}

How do I take this data and display it in a Listview on Android? I’ve tried using it this tutorial but I couldn’t, it couldn’t convert the value. Someone could provide a simple tutorial on how to do this?

  • This "All Alerts:" is part of what is returned by the webservice? The > are also part of what is returned by webservice? What tutorial you used?

  • @Victor, I edited the theme...

  • @Jeiferson, that is enough: http://answall.com/questions/43288/como-fazer-uma-requisi%C3%A7%C3%A3o-http-get-passing-data-and-reply-with-json/43294#43294

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.