Wrox Programmer Forums
|
BOOK: Professional Android 2 Application Development
This is the forum to discuss the Wrox book Professional Android 2 Application Development, 2nd Edition by Reto Meier; ISBN: 978-0-470-56552-0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional Android 2 Application Development section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 5th, 2012, 10:50 PM
Registered User
 
Join Date: Feb 2011
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Chap7-2 Earthquake sort problem

I am getting sort problems in Earthquake using the Content Provider. When I start from scratch (so there is no Content Provider present), the earthquakes are listed starting from the most recent first. This makes sense as that's how the data comes in from USGS.

If I then do an immediate "Refresh", the earthquake list is turned over so that the oldest is first and newest last. The reason seems to be that the list is obtained from the newly created Content Provider and the order taken oldest to newest.

Worse, if I wait to do the Refresh until there are new earthquakes, the old ones are are shown oldest to newest (read from the Content Provider) but the new ones are appended in a newest to oldest order as they are read in from USGS.

Anybody else see this problem or do I have something strange here?





Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter 7 Earthquake 2, Earthquake.java, error onActivityResult dbomberg BOOK: Professional Android 2 Application Development 2 November 30th, 2012 05:52 AM
Problem Running Chapter 6 Earthquake clombardo BOOK: Professional Android 2 Application Development 26 June 28th, 2012 01:33 PM
Problem: Chapter 7 "Creating and Using an Earthquake Content Provider" (Page 232) DrGaribaldi BOOK: Professional Android 2 Application Development 0 June 17th, 2010 04:07 AM
PHP:wrox chap7 page197 vidhi BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 1 January 23rd, 2008 03:13 AM
how to sort cross tab.sort based on row total joxa83 Crystal Reports 7 March 2nd, 2006 09:12 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.