I am making an app that will have images. When the user hits the next button the app will display the next image.
Would this be done with a server that will host the images and when the next button is hit the image in that server will go to the app,
How can i do this.
EXAMPLE OF APP IDEA…
App1
Button1 = Previous
Button2 = Next
SERVER/HOST
Image1
Image2
Image3
Image4
When button2 (NEXT) is clicked it will display Image2 from server
When Button2 (NEXT) is clicked AGAIN it will display Image3 from server
-BUT-
When Button1 (Previous) is clicked it will display the previous image (e.g. Image2)
–
Sincerely,
IntelSoftApps
IntelSoftApps.com
You should make this method call from a seperate thread so as to not freeze the ui while its getting the picture. Once you have your image as a Drawable you just have to set an ImageView to display it.