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 8023785
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T22:40:01+00:00 2026-06-04T22:40:01+00:00

currently I’am developing an Android native app which have to communicate with a server

  • 0

currently I’am developing an Android native app which have to communicate with a server (for ex. via REST) to load, save data etc.

Now I’m considering the offline scenario. I also want the user to save data if the mobile phone has currently not network connection. If the network connection is up again I want to sync the user data with my server.

Do anyone know some best practice to achieve this. I’m considering using a couchdb for replication, but I’m wondering if there are other nice ways to support offline use of my app.

Thx a lot.

  • 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-04T22:40:03+00:00Added an answer on June 4, 2026 at 10:40 pm

    you can use broad cast receiver for this purpose

     <receiver android:name=".ConnectionReceiver" >
                <intent-filter>
                    <action android:name="android.net.conn.CONNECTIVITY_CHANGE" />
                </intent-filter>
            </receiver>
    

    if connectivity is changed(on or off) we can know that using this broadcast receiver…and start a assynctask for u r refresh and load the new data from server

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

Sidebar

Related Questions

Currently, I have a GWT based application /app.htm It displays an openId login button
Currently I have a UITableview, I have enough data that cannot be shown entirely
Currently I am debugging the signing of an Android app. And this would be
currently I'm developing an app for WP7 but came across a little problem with
Currently I have a date in my clients data table and it is stored
Currently I have a web service, which loads up any plugins located within its
Currently I am developing a Mac OS X app with XCode 3.2.5 on Mac
Currently we have a hybrid ASP/PHP setup connecting to a SQL Server 2005 database.
Currently I have a dedicated server with WHM and Joomla running. I want to
Currently I'm using the Jackson JSON Processor to write preference data and whatnot to

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.