Archive for May, 2010
Resources NotFoundException
May 27th
The below Resources$NotFoundException log results from user error and is easily fixed.
Uncaught handler: thread main exiting due to uncaught exception android.content.res.Resources$NotFoundException: String resource ID #0x1 at android.content.res.Resources.getText(Resources.java:205) at android.widget.TextView.setText(TextView.java:2809)
I get this error when I am trying to set a View’s text using an integer value like:
view.setText(iSomeInteger) // This is incorrect !
Instead, to set the text of a view using an integer, you need to do:
view.setText(Integer.toString(iSomeInteger)) // setText with an int
The problem is that setText(int) is reserved for string resource ids, like:
view.setText(R.string.someStringId) // setText with a string resource id
The last part of this puzzle is when you want to concatenate a string resource with other text, you need to use getString(int). Otherwise you will end up with the string resource id (not the string itself) as part of your new text:
// concatenate a string with a string resource
view.setText("Some Text: " + getString(R.string.someStringId))
Wagz for Android
May 22nd
Wagz is a virtual dog who you take for a *real* walk every day. The longer you walk him, the happier he will be. The more frequently you walk him, the more he will love you!
Wagz will remind you when it is time to go for a walk every day so that you do not forget about him!
- Main View
- Walk Details View
- Settings View
You can download Wagz for Android in the Android Marketplace. Search for “wagz” from within the Android Marketplace or use your Barcode Scanner to read the QRCode to the left.
On May 27, 2010, Wagz was awarded 3rd place in the Snaptic “Move Your App!” Developer Challenge.
On May 26, 2010, Wagz for Android was selected as one of the 10 finalists for the Snaptic “Move Your App!” Developer Challenge.
On May 26, 2010, Wagz was featured on the Huffington Post as part of their article The ‘Move Your App’ Challenge Finalists: 10 Android Apps To Get You Moving:
Wagz hopes that caring for a virtual dog (think Tamagotchi 2.0) will motivate you to get up and get going. The virtual Wagz dog, which you can customize to your liking, must be walked every day. The app tracks the time and distance of the walk. “The longer you walk him, the happier he will be. The more frequently you walk him, the more he will love you!” the developer explains.
Wagz uses the Snaptic 3banana Android application to save details about your walks.
Wagz is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. You may download the Wagz Source Code and use it under the GPLv3. The images in this package are *not* released under the GPLv3.
You can view more about Wagz and see all ratings and reviews at AppStoreHQ:
Android apps at AppStoreHQ



