Update images for my android app from a server

I'm developing an image app (Gallery type) in Android Studio and my doubt is how to add more images every now and then without having to upload an update to the Play Store.

For example, add more images every week remotely.

 0
Author: Mariano, 2016-10-24

2 answers

There are several ways to consult the images through a web Sevice whose answer I delivered a.json o .xml of the images to be displayed in the gallery.

If you want something quick I give you as an example to create a .json o .xml accessed via http, which contains the URLs of the images, and which you must have access to modify:

<gallery name="imagenes galeria" version="1">
  <image url="http://www.mydomain.com/images/caine.jpg"/>
  <image url="http://www.mydomain.com/images/cal.jpg"/>
  <image url="http://www.mydomain.com/images/pui.jpg"/>
  <image url="http://www.mydomain.com/images/ursus.jpg"/>
  <image url="http://www.mydomain.com/images/cocos.jpg"/>
</gallery>

When you launch your application, it would download the file, parse and get the URLs of the images which it would display in your app.

enter the description of the image here

 3
Author: Jorgesys, 2016-12-13 21:54:30

If you are interested in something more sophisticated you should build an API in a web technology (NodeJs with express, for example) using REST, where you make a POST to upload the images and a get to get them. Then on Android with a web services library (like Retrofit) you stick to that API and pick up the photos. It is a more complicated solution but at least you have a better integration. If you want an example, you can look at the GitHub code of my app stackoverflow .

 1
Author: maxwellnewage, 2016-10-24 19:39:47