Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Finch framework - distinguish between empty cache and no network results #1

Closed
goat000 opened this issue Jun 29, 2012 · 2 comments
Closed

Comments

@goat000
Copy link

goat000 commented Jun 29, 2012

Hi. Your README instructed me to send comments to an email address that bounced, so I'm opening a ticket instead in hopes that you'll see it while working on the second edition.

I've been working on a project that uses the Finch RESTful Content Provider framework from this book. One problem we keep running into is how to distinguish between "We're showing 0 results because the cache is empty and we're waiting on a network call" and "We're showing 0 results because the server just told us there are 0 results." We'd like to show a "Loading..." message in the first case and a "No results" message in the second.

It doesn't seem that the Finch framework, as explored in Chapter 13, allows the querying activity to distinguish between the two. We've worked through some ideas, but without satisfaction so far, and the remaining ideas are far from elegant. I think it would be a useful addition to the second edition discuss a way to handle this.

@ldornin
Copy link
Collaborator

ldornin commented Jun 29, 2012

Brian,

Did you get the email that I just sent?

Thanks,

Laird

On Thu, Jun 28, 2012 at 10:06 PM, Brian Williammee
reply@reply.github.com
wrote:

Hi.  Your README instructed me to send comments to an email address that bounced, so I'm opening a ticket instead in hopes that you'll see it while working on the second edition.

I've been working on a project that uses the Finch RESTful Content Provider framework from this book. One problem we keep running into is how to distinguish between "We're showing 0 results because the cache is empty and we're waiting on a network call" and "We're showing 0 results because the server just told us there are 0 results." We'd like to show a "Loading..." message in the first case and a "No results" message in the second.

It doesn't seem that the Finch framework, as explored in Chapter 13, allows the querying activity to distinguish between the two. We've worked through some ideas, but without satisfaction so far, and the remaining ideas are far from elegant. I think it would be a useful addition to the second edition discuss a way to handle this.


Reply to this email directly or view it on GitHub:
#1

@poshaughnessy
Copy link

Hi,

I'm just starting to explore Programming Android Chapter 13 and the Finch Framework, so apologies if this is out of place at all, but Brian's question sounds like a good one - I would also need to distinguish zero results in the same way. Is it possible to copy the response here, or email it to me too?

Thank you,

Peter

@bmeike bmeike closed this as completed May 26, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants