Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Search Forums
Password Reminder
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 25 of 27
Search took 0.01 seconds.
Search: Posts Made By: Kees
Forum: BOOK: Professional Android 4 Application Development March 6th, 2016, 06:55 AM
Replies: 9
Views: 2,483
Posted By Kees
Date parsing exception

It surprises me that Android Studio does not raise that wrongthreadexception, i didnt try to run the same in studio.

Okay, i know what could cause the parsing error (if you didnt change the string...
Forum: BOOK: Professional Android 4 Application Development March 5th, 2016, 11:05 AM
Replies: 9
Views: 2,483
Posted By Kees
Chapter 6 not working

Hi Stephanie,
I remember a problem with the code of chapter 6 (no list at all)

In 2013 i found this exception in logcat :

"android.view.ViewRoot$CalledFromWrongThreadExcept ion: Only the...
Forum: BOOK: Professional Android 4 Application Development March 5th, 2016, 10:29 AM
Replies: 9
Views: 2,483
Posted By Kees
Chapter 6 not working

Try to debug into refreshEarthquakes, if you arrive in the for loop after
NodeList nl = docEle .... Then you can step through.
Such i did some years ago after not seeing any list, and it helped....
Forum: BOOK: Professional Android 4 Application Development March 5th, 2016, 07:23 AM
Replies: 9
Views: 2,483
Posted By Kees
Chapter 6 Earthquake Viewer

Hi, yes things have changed ...
look at http://earthquake.usgs.gov/earthquakes/feed/v1.0/index.php
Look at atom syndication.
In stead of that 1 day M2.5.xml use...
Forum: BOOK: Professional Android 4 Application Development July 9th, 2014, 12:02 PM
Replies: 1
Views: 1,058
Posted By Kees
Content Provider, LoaderManager

Hi,
I am not that familiar with this stuff but don't see an asynchronous loader here, as that restartLoader is called in a new thread.
At the end of onCreate in your main for instance :

...
Forum: BOOK: Professional Android 4 Application Development July 1st, 2014, 08:37 AM
Replies: 0
Views: 1,155
Posted By Kees
Mapping earthquake example using api v2

Chapter 13 in the book handles mapping of all earthquakes found in the database.
It would be more clear to select one quake from the listfragment (sometimes many spots are very close together) and...
Forum: BOOK: Professional Android 4 Application Development December 18th, 2013, 08:34 AM
Replies: 11
Views: 3,171
Posted By Kees
Srolling on the ListFragment does not work

I think ListFragment should be scrollable without additional code.
I loaded it on my device, and the list can be moved up and down when long enough [:)]
Forum: BOOK: Professional Android 4 Application Development December 14th, 2013, 06:40 AM
Replies: 11
Views: 3,171
Posted By Kees
ToDoItem constructor

Hi,

I can't see the mismatch between the constructor of ToDoItem class
public ToDoItem(String _task, long _created) {
task = _task;
created = new Date(_created);
}

and
ToDoItem...
Forum: BOOK: Professional Android 4 Application Development December 4th, 2013, 07:53 AM
Replies: 2
Views: 689
Posted By Kees
chapter 10 earthquake_3 notification

Ok, i understand a new instance of the activity (earthquake) is formed when that activity is already there in the back stack.
To prevent an existing activity to be relaunched, you could try to set :...
Forum: BOOK: Professional Android 4 Application Development December 3rd, 2013, 11:41 AM
Replies: 2
Views: 689
Posted By Kees
chapter 10 earthquake_3 notification

Hi Lanny,

How did it appear to you that 2 instances of earthquake are active?
When i repeated this (clicking a notification with an earthquake app running) then i see just one earthquake active...
Forum: BOOK: Professional Android 4 Application Development May 21st, 2013, 04:34 AM
Replies: 4
Views: 1,287
Posted By Kees
Problems Running Earthquake 1

Hi marfl99,

In eclipse when editing EarthquakeListFragment, try "ctrl-shift-o" and import android.app.ListFragment. If i omit this, i see the errors you noticed..
But this only works on min sdk =...
Forum: BOOK: Professional Android 4 Application Development May 14th, 2013, 05:57 AM
Replies: 4
Views: 860
Posted By Kees
Chapter 7 - Earthquake Part 1

This is very odd, oddstray

I just loaded the code on eclipse and found no problems, the only way that PreferencesActivity does not show up is when i don't have

public boolean...
Forum: BOOK: Professional Android 4 Application Development May 13th, 2013, 06:36 AM
Replies: 4
Views: 860
Posted By Kees
Chapter 7 - Earthquake Part 1

Hi oddstray,

The earthquake part 1 code in ch 7 does not make use of any xml file in res/menu, as there isn't such. So i don't understand what you want to do with /menu/main.xml? Build without...
Forum: BOOK: Professional Android 4 Application Development April 22nd, 2013, 07:22 AM
Replies: 5
Views: 1,110
Posted By Kees
"final" in front of EditText revisited

Hi,
My guess is not closer to the truth, as i checked Chapter_8_To-do_List with myEditText without the final, by declaring it as a class member in stead of a local variable, and it still run...
Forum: BOOK: Professional Android 4 Application Development April 21st, 2013, 05:22 PM
Replies: 5
Views: 1,110
Posted By Kees
"final" in front of EditText

i guess that the reason of final has to do with "threading", but not in chapter 4,
but in chapter 8's todolist.
So i think that in the code of chapter 4 the use of final is not necessary, but in...
Forum: BOOK: Professional Android 4 Application Development April 16th, 2013, 03:37 PM
Replies: 4
Views: 1,177
Posted By Kees
Hi marfl99

I assume that it is about the todo list in chapter 4, and that you are using eclipse (as i do).
It seems that your gen/R.java has been corrupted.
Sometimes only changing the min sdk value in the...
Forum: BOOK: Professional Android 4 Application Development April 13th, 2013, 03:32 PM
Replies: 4
Views: 1,177
Posted By Kees
Hi, i also don't understand how it ever could...

Hi,
i also don't understand how it ever could work at min sdk version 4.
That should be 11.
Forum: BOOK: Professional Android 4 Application Development April 6th, 2013, 07:28 AM
Replies: 3
Views: 1,859
Posted By Kees
MAX_TEXT_LENGTH

Hi,

I replaced that with an integer value of 500, see also http://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html#MAX_TEXT_LENGTH

Or use...
Forum: BOOK: Professional Android 4 Application Development February 25th, 2013, 10:36 AM
Replies: 2
Views: 747
Posted By Kees
Todolist chapter 4?

Hi, it looks like the folder res/layout is not there..
If you use Eclipse, then do :
File-> New-> Other-> Android project from existing code, and in import projects wizard browse to "...\Full...
Forum: BOOK: Professional Android 4 Application Development February 1st, 2013, 11:01 AM
Replies: 11
Views: 3,171
Posted By Kees
Chapter 8 ToDoList Database

Michael,

That code with SimpleDateFormat is in the getView method of the ToDoItemAdapter class.
For me this works mysteriously somewhere in the android engine, but however the ToDoItemAdapter...
Forum: BOOK: Professional Android 4 Application Development January 31st, 2013, 10:48 AM
Replies: 11
Views: 3,171
Posted By Kees
Chapter 8 ToDoList Database

Ok, i forgot to tell that i just threw that constructor away!
So only one constructor is used in ToDoItem:

public ToDoItem(String _task, long _created) {
task = _task;
created = new...
Forum: BOOK: Professional Android 4 Application Development January 31st, 2013, 06:54 AM
Replies: 11
Views: 3,171
Posted By Kees
Chapter 8 ToDoList Database

Hi Michael,

That missing space is indeed a flaw in the provider, and another is the constructor in the ToDoItem class, because the date time at the moment of building the array list is in fact...
Forum: BOOK: Professional Android 4 Application Development January 24th, 2013, 12:07 PM
Replies: 1
Views: 1,216
Posted By Kees
Smile Problem to add support library in Eclipse "solved"

After some more reading in the developers guide i found that the problem was not a bug in Eclipse but my expectation that i could just use an api 11 class like Notification.Builder with...
Forum: BOOK: Professional Android 4 Application Development January 24th, 2013, 09:03 AM
Replies: 1
Views: 1,216
Posted By Kees
Problems to add support library in Eclipse

Hello Reto,

From your (very well informing and thorough!) book on p. 27, "incorporate a support library", i understood that when i inserted android-support-v4.jar in my build path, then i could...
Forum: BOOK: Professional Android 4 Application Development January 21st, 2013, 08:46 AM
Replies: 6
Views: 1,214
Posted By Kees
Chapter_6_Earthquake

A possible "quick" solution i posted to the problem that newbie had (no earthquake listing was generated).
I found it in my environment due to exception :...
Showing results 1 to 25 of 27

 


All times are GMT -4. The time now is 10:51 PM.


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