Answer the question
In order to leave comments, you need to log in
Which image acquisition algorithm should be used?
There is some object SomeObject containing a link to the picture.
The object is stored in the database on the device.
There is a SomeView object that displays SomeObject.
How to organize the upload of an image file?
Option - when creating SomeView, check if the picture is loaded and if not, then start the process that loads the picture.
Do not store a link to the process in SomeView.
After downloading the picture, send an Intent to listen to in the receiver stored in SomeView. In general, is it right to create receivers inside a View? On what event it is correct to make unregister?
If the View is destroyed and then re-created, you need to somehow check that the loading process has already been initiated (is it necessary?).
The question can become more complicated if there are a dozen SomeObjects that need to be shown at the same time. Is it possible to start downloading images in parallel or do I need to organize a queue?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question