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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T06:45:14+00:00 2026-06-15T06:45:14+00:00

I am looking to implement the Google IO Rest Structure part A – Using

  • 0

I am looking to implement the Google IO Rest Structure part A – Using a Service API. So i have identified the following portions of the structure.

  1. An interface that provides rest method.
  2. A Processor Class that implements the above interface. There will
    many processor Classes. Each Processor class will return a model
    class type.
  3. A Service Provider, that deals with a Single Processor. The data
    returned from the Processor is handled by the Service Provider. This
    will call the Processor Function, and obtain the data returned.
  4. A SerivceProcessor that is a service class. There will be a
    single class in the application. This will communicate with the
    various SericeProvides based on the Bundle data passed to it.
  5. Service helper that provides high level integration between the
    Activity and the Service

Now i am not clear here. The Service has the data that has been requested. How to proceede further. How do i pass the data back from the Service to the ServicHelper. Put it in a Bundle with the tag BUNDLE_EXTRA ? For this my pojo would have to be either Serializable or Parceable. I know Serializable is a really bad option on the Android Platform. What other options are they. Would i be using a Broadcast Intent ?

Thanks for any help here.

  • 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-15T06:45:16+00:00Added an answer on June 15, 2026 at 6:45 am

    You can do a couple of things.

    • notifying back to the service helper through intents (letting it implement a broadcast receiver). This might be a bad idea since with a single rest call you can get a lot of rows. In this case you should implement some sort of facility to put your pojos in the intents you are sending back (like a fillIntent/getFromIntent method)

    • inside the service provider, store the result data somewhere (sqllite, contentprovider, file) and just throw a broadcast intent that will contain only the requestId and the result of your call.
      The service helper intercept the broadcast and notifies any interested activity that the request has been completed. The activity updates the ui according to that. In this case the servicehelper is used just to keep track of the ongoing request / notify the results.

    In my opinion this approach is better because you keep the ui and the model separated, and you don’t demand to the activity the storage of the data, and it’s more “rest oriented”.

    Plus: some time ago I tried to implement this approach. It’s not completed but you can check the service helper and the request / result intents here postman lib

    A more mature and robust library is robospice, which is what I would use now if I had to deal with rest services.

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

Sidebar

Related Questions

I'm currently using ActionBarSherlock in my app and I'm looking to implement Google's EasyTracker
i'm looking for implement datagrid with CI, better if using ajax. Searching on Google
Looking at Thrift and Google Protocol Buffers to implement some quick RPC code. Thrift
I have been looking to implement a custom class of : IList<ArraySegment<byte>> this will
I'm looking for advice to speed up serialization performance, specifically when using the Google
I have been using the ncommon framework ( http://code.google.com/p/ncommon/ ) with nhibernate and asp.net
I am using the Google Collections library AbstractIterator to implement a generator. I ran
I'm following the steps in the dev guide to implement the Google Marketplace (Play)
Im looking for free easy-to-implement & ad-free alternatives to Google CSE. I found indextank,
looking to implement google closure with msbuild. i found a few solutions but struggling

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.