Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Mobile Development > BOOK: Professional Android Application Development ISBN: 978-0-470-34471-2
|
BOOK: Professional Android Application Development ISBN: 978-0-470-34471-2
This is the forum to discuss the Wrox book Professional Android Application Development by Reto Meier; ISBN: 9780470344712
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional Android Application Development ISBN: 978-0-470-34471-2 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 September 1st, 2009, 12:45 AM
Registered User
 
Join Date: Sep 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Chap6 - Earthquake not updating when nothing matches preferences

I noticed that if I select a minimum magnitude that does not return any quakes, the list of quakes displayed is not updated.

The arrayList earthquakes is cleared in refreshEarthquakes(), but the ArrayAdapter aa.notifyDataSetChanged is not being called in addNewQuake() since the condition regarding minmum magnitude does not satisfy.

I got around the problem by shifting the aa.notifyDataSetChanged() to the end of refreshEarthquakes() instead. That way the ArrayAdapter gets notified everytime there is a "refresh".

Is there a better way to do this?
 
Old January 16th, 2010, 05:41 AM
Registered User
 
Join Date: Jan 2010
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default zoom/magnify image.

Can any one give me the code for zooming/magnifying the camera image in android?????





Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter 6 Earthquake using Provider abowman BOOK: Professional Android Application Development ISBN: 978-0-470-34471-2 0 March 9th, 2009 05:19 PM
VBScript and printer preferences CmdrDuh VB How-To 0 November 9th, 2007 03:07 PM
Application Preferences And Resource Files geomar General .NET 0 November 14th, 2006 01:35 PM
XML, Sessions and Application Preferences pipelineconsulting Classic ASP XML 0 September 16th, 2005 04:41 AM





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