How to indicate images in android gallery -


using application uploaded images server, next time while open application , trying select images using same application, how can indicate uploaded images?

the easiest way creating local database , adding flags uploaded contents.

the database schema this,

enter image description here

now each time upload content, make following queries,

  1. if content name exists in database file_name & is_uploaded status = true, file uploaded.

  2. else, create new record file in database , upload.

  3. if have list of images show if uploaded, run , loop , change uploaded indicator based on database is_uploaded flag.


Comments

Popular posts from this blog

PHP while loop dynamic rowspan -

timer - Java TimerTask cancel -

android - How to read a column value in parse.com without accessing an object or a pointer -