Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Search Forums
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Welcome to the p2p.wrox.com Forums.

You are currently viewing the section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Showing results 1 to 13 of 13
Search took 0.01 seconds.
Search: Posts Made By: juniper
Forum: BOOK: Professional Android 2 Application Development August 23rd, 2010, 04:40 PM
Replies: 14
Views: 3,086
Posted By juniper
Cursor fixes

Hi MellowFellow,
You have to apply the same two fixes from Chapter 7 (addNewQuake and loadQuakesFromProvider) described here:...
Forum: BOOK: Professional Android 2 Application Development August 23rd, 2010, 12:36 PM
Replies: 2
Views: 1,628
Posted By juniper
Yes, I've experienced it

DrGaribaldi's post explains the problem:

http://p2p.wrox.com/book-professional-android-2-application-development/79775-problem-chapter-7-saving-your-do-list-page-218-a.html
Forum: BOOK: Professional Android 2 Application Development August 18th, 2010, 07:53 PM
Replies: 14
Views: 3,086
Posted By juniper
Chapter 9 Earthquake 4

Hi MellowFellow,
I'd think you'd get better results running "Chapter 9 Earthquake 4" which uses an alarm instead of timer.

I had a lot of force closes while running Chapter 9 Earthquake 1-3. Reto...
Forum: BOOK: Professional Android 2 Application Development August 18th, 2010, 01:41 PM
Replies: 2
Views: 1,278
Posted By juniper
me too

Hi MellowFellow,
I couldn't get it working in the emulator either.

I found this post that says the reverse geocoding emulator is not working for 2.1 and 2.2:
...
Forum: BOOK: Professional Android 2 Application Development August 18th, 2010, 01:34 PM
Replies: 14
Views: 3,086
Posted By juniper
Changes to get Chapter 10 Earthquake 3 Working

Hi,
I started seeing the same exception, java.lang.ClassCastException: java.lang.String.

By creating a new project, mellowfellow, you cleared out the existing preferences data. The preference...
Forum: BOOK: Professional Android 2 Application Development August 17th, 2010, 04:10 PM
Replies: 14
Views: 3,086
Posted By juniper
API Level

What API Level are you using now? It's working for me with 7 (2.1-update).
Forum: BOOK: Professional Android 2 Application Development August 17th, 2010, 03:31 PM
Replies: 14
Views: 3,086
Posted By juniper
JDK

what JDK are you using?
Forum: BOOK: Professional Android 2 Application Development August 17th, 2010, 02:25 PM
Replies: 14
Views: 3,086
Posted By juniper
API Level?

What Android API Level are you using? Project Properties...Android...Project Build Target

START_STICKY was introduced at API Level 5
Forum: BOOK: Professional Android 2 Application Development August 17th, 2010, 01:47 PM
Replies: 14
Views: 3,086
Posted By juniper
Is your import correct?

import android.app.Service;
Forum: BOOK: Professional Android 2 Application Development August 17th, 2010, 12:53 PM
Replies: 3
Views: 2,625
Posted By juniper
also close cursor in loadQuakesFromProvider

Hi MellowFellow,

Add c.close() as the last line of loadQuakesFromProvider():
} while(c.moveToNext());
}
c.close();
}
Forum: BOOK: Professional Android 2 Application Development August 16th, 2010, 04:35 PM
Replies: 3
Views: 2,625
Posted By juniper
Fix: Chapter 7 - Earthquake IllegalStateException Finalizing cursor

Hi,
The debugger was suspending the Ch. 7 Earthquake app due to an IllegalStateException. The error from LogCat:
Ljava/lang/IllegalStateException;: Finalizing cursor...
Forum: BOOK: Professional Android 2 Application Development August 12th, 2010, 08:05 PM
Replies: 1
Views: 732
Posted By juniper
getColumnIndex

if you look at the source code, you'll see that Reto used this instead:

String task = cursor.getString(cursor.getColumnIndex(KEY_TASK));
long created =...
Forum: BOOK: Professional Android 2 Application Development August 12th, 2010, 01:30 PM
Replies: 3
Views: 3,526
Posted By juniper
ContactsContract

I used the ContactsContract (http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/view/List7.html) to fix.

Code changes for ContactPickerTester:

replace...
Showing results 1 to 13 of 13

 


All times are GMT -4. The time now is 12:16 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.