Information Technology Reference
In-Depth Information
Figure 12-8. The Android Confirm Reload dialog
Now that the basics of word-of-the-day are done, we could continue by making it a bit
prettier (i.e., using a nice CSS scheme as mentioned previously).For our purposes,
though, you should now have a good idea of how flat text files can not only be included
through PHP (as shown in previous chapters), but also now through AJAX.Our next
stop? The wonderful world of web services, XML, and JSON.
My News!
Our next example calls a few web services to bring us content which won't be stored on
our own device. We'll also have to take a slightly ego-centric view of the world, but hey,
that comes with the territory of being a programmer!
Let's imagine that we have a number of websites we like to visit, and we want our
application to display the most recent news from them. To do this, we need to bring the
RSS feeds of these websites together, merge them, and then display them. We'd like
the list to update in real time, on our page, without user intervention. Sound
complicated? Not really—if you know some tricks!
 
Search WWH ::




Custom Search