I have an Android application with a local database that contains information about pictures stored on the device. I want to create a server with pictures that could be provided on demand to all devices that have my application installed. So my application can provide local pictures or pictures from my server and also needs some information related to those pictures.
I analyzed GCM and it great for message communication, but since the size of the message is limited to 4kb I can't send the pictures. My idea was to have something like this:
My question is: in this context is the GCM communication useful or it would be more efficient to have only client-server communication through a webservice?
I assume that if I use GCM, in the server-client communication I only use the code bellow as in "Bitmap Fun" example to receive the picture
BitmapFactory.decodeFile(pictureURL, options);
The approach above requires more battery and bandwidth since I am asking for 1 picture at a time instead of an array of 50pictures? If I don't use the GCM, what should I handle (e.g. device is in stand by)?