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

  • Home
  • SEARCH
  • 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 6319165
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T15:45:32+00:00 2026-05-24T15:45:32+00:00

Is there a common way to consume web services from Android applications (aside from

  • 0

Is there a common way to consume web services from Android applications (aside from the protocol)? What I need is a Service or Intent or Thread (or anything else) that is capable of:

  1. staying alive no matter what Activities are open;
  2. be able to perform multiple requests at the same time;
  3. accept input values and return output values to the right caller;
  4. be able to discard an ongoing operation (while keeping to run all the others) and not to return the output value if it is no longer desired;
  5. (of course) run asynchronously.

Is there a common way to accomplish this? I’ve had some issues while using Services, primarily because I wasn’t able to discard an ongoing operation, so the results were colliding with each other.

  • 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-05-24T15:45:33+00:00Added an answer on May 24, 2026 at 3:45 pm

    mmm you need a combination of things here. First of all, you need a service layer implement it with a Bound Service (inherits). Your UI activities must call this service through an Intent.
    Then, this layer that would be execute it in a different thread than your UI layer, must have a Rest Client object to perform services calls.
    Here you have lot of approaches, I recommend you Spring Rest implementation as well as Restlet.

    As is a pretty big discussion, anything else please tell me.

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

Sidebar

Related Questions

I am wondering if there is some way to call C++ code from Common
Is there a common way to implement videos on the web that will also
Is there a common way to get the current time in or with milliseconds?
Is there a common way to express the usage of arguments in C++? I
There's a common way to store multiple values in one variable, by using a
Is there a standard or common way in C++ to handle static strings that
Is there a best-practice or common way in JavaScript to have class members as
Is there a way to set a common Backgroundcolor for all the tabs in
Is there a decent way with static HTML/XHTML to create common header/footer files to
Instead of returning a common string, is there a way to return classic objects?

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.