-1

How is it possible to update pictures live on an app, doing it all from online? Like iFunny, Cyanide & Happiness, Instagram they update picture on a regular basis and i want to know how to do this on my app as well?

I would like to get information from a server, and the app would be able to make a new imageView for it and post it

Thank you for any help you can provide :) (I am a newbie, sorry if this question sounds stupid).

Crazycriss
  • 315
  • 1
  • 5
  • 19
  • See this (found by googling "android imageview from url"): http://stackoverflow.com/questions/17120230/android-set-imageview-to-url – Rick Falck Dec 30 '13 at 07:07
  • 2
    please update your question, based on your requirement, then surely you will get meaningful answers. – AabidMulani Dec 30 '13 at 07:09
  • Yeah, but i would want to update the picture and change it without recoding that specific section of the app Thank you for the response – Crazycriss Dec 30 '13 at 07:09

1 Answers1

1

There is a ton of different ways to do this, all depending on your needs and requirements. You can have your app poll data from a server, or you can have the server notify the client using Google Messaging for Android, or something else. Cant say for sure how the apps you mention do it specifically as I dont use any of them myself, but maybe someone else here knows.

ardevd
  • 3,329
  • 5
  • 30
  • 55
  • How would an app poll data from a server? I was aiming for that but could not find much tutorials for it online Thank you, and the username Zygotes pretty bomb. – Crazycriss Dec 30 '13 at 07:08
  • Again, there are so many ways of doing it, and probably many that are better than how I would do it. However, personally, depending on how you've designed your app, you could have a simple web server that you communicate with using JSON. So say, you write a method in your app called "getNewPics()" which asks the server for new pictures. The server returns JSON items with URLS for pictures you then load up in your app. Makes sense? Oh, and thanks! Im an Android nerd so Zygote made sense to me ;) – ardevd Dec 30 '13 at 07:13
  • I get you, im going try it out and use JSON. Thank you! :D – Crazycriss Dec 30 '13 at 07:17
  • Good luck! Its pretty smooth and simple :) About to embark on a large JSON-based project myself so feel free to let me know how it works out for you ;) – ardevd Dec 30 '13 at 07:21