• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

display content from web API

 
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I need somehelp in displaying data from there different web API's in a single screen. Some code or a link will be reallyhelpful
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What specific problem do you have with that - accessing the APIs? Designing or implementing the GUI to display the data? Something else?
 
binu narayanan
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ulf Dittmer, actually i do not have the slightest idea how to achieve it.I have no issues in accessing the API's . The issue is with Designing and implementing the code to access the three API's simultaneously and display the data
 
Ulf Dittmer
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Have you written any Android app that retrieves data and displays it? Actually, since you state that accessing the APIs is not a problem, that boils down to "have you written any Android app that displays data?" - which is pretty much the same as asking "have you written any Android app?" If not, check out the sample apps that come with the Android SDK - they show just about any API (including all the GUI elements) in action. You may also want to get an introductory book; the https://coderanch.com/how-to/java/AndroidFaq lists several, but make sure it covers Android 4.
 
binu narayanan
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ulf Dittmer, sure i have written APP to display data from a web API using AsyncTask and i was able to display data from another webAPI in the same screen using sub activity. Issue is that i have to get the data from first API use the data to access the other three webAPI's and display the data from the first and the three other web API call in the same screen. I would like to know whats the way to do it. Thanks
 
Ulf Dittmer
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can you be specific about what prevents you from progressing? If you have already written an app that retrieves data from one site and displays it, writing one that retrieves data from 3 sites and displays it isn't fundamentally different.
 
binu narayanan
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
you can call another async task from the post execute method of the first async task

 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic