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

Spring Boot + JPA + Hibernate: Unable to locate persister -

go - Golang: panic: runtime error: invalid memory address or nil pointer dereference using bufio.Scanner -

c - double free or corruption (fasttop) -