Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9010505
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T02:28:43+00:00 2026-06-16T02:28:43+00:00

I have a client(android)-server app containing tasks that are to be distributed to users.

  • 0

I have a client(android)-server app containing tasks that are to be distributed to users. A user can see all available tasks, and when he enters a task the client sends a “READ” notification to the server, indicating that the task has been read.

When connection on the android client is down I want to buffer up server calls, and execute them once connection is back.

Use case:

Connection is down and user A opens task1. The client will call a handle on its service layer, but this service will not call the REST handle on the server until connection comes back.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T02:28:44+00:00Added an answer on June 16, 2026 at 2:28 am

    I would create:

    • A Command class that represent an action to perform (interaction with the server). Store in this object information such as endpointUrl, httpMethod, parameters and anything else you need to perform a call to the server. Make this class serializable.

    • An Executor class that, given a Command, can perform the action (calling server endpoint with correct parameters and everything).

    When the Executor received a command that cannot be executed because the server is down it serialize this command. It needs to be on a permanent storage (not in memory) for the case the application is stopped with pending commands.

    When the application start you should add logic to deserialize all commands and execute them. You can also implement a listener on network state, when connectivity is back do the same thing as startup: deserialize commands and execute them.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a client and a server app on Android (that uses ZeroC -
I have Android client app that communicates with server using Socket . On my
I have a client who needs an Android App that can recognize spoken commands.
I have a simple client-server app on android. the android service communicates with the
I have dynamic listview on my android client app that receive data from remote
We have client server based app which saves user related data into a zip
Is there any ToDo app that have .NET api for server side adding tasks.
I have an app in android which is a kind of client-server. I've established
I'm making an Android app where the user can download files from a FTP-server.
I have made a server - client app in android with php and mysql.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.