androidimage-uploadingimage-gallerymultipartentity

How to indicate images in android gallery


Using my application i uploaded some images to server, next time while i open that application and trying to select images using that same application, how can i indicate the already uploaded images?


Solution

  • The easiest way would be creating a local database and adding flags for those uploaded contents.

    The database schema could be like this,

    enter image description here

    Now each time you upload a content, Make the following queries,

    1. If content name exists in database file_name & is_uploaded status = true, the file was already uploaded.

    2. Else, create a new record for the file in database and upload.

    3. If you have a list of images to show if they were uploaded, run and loop and change the uploaded indicator based on the database is_uploaded flag.