First, as a long-time Java developer I'm now learning Android. I have an app in which I use the ContentValues class to supply data to a Class that extends ContentProvider. Here's the issue. I'm 'put'ing 5 values (from a layout) into the ContentValues class. The problem - not all values are getting assigned. All values are of type String and they are valid values. Here is my code: int numColumns = 5; ContentValues newRideValues = new ContentValues(numColumns); newRideValues.put(KEY_RIDEDATE, rideDate); newRideValues.put(KEY_DURATION, rideDuration.getText().toString()); newRideValues.put(KEY_WEATHER, weather.getText().toString()); newRideValues.put(KEY_DISTANCE, distance.getText().toString()); newRideValues.put(KEY_EXERCISE_TYPE, radioExerciseButton.toString()); rideDate never gets assigned and the other values seem to not be assigned in order ie; distance may end up being the second element, when I would have expected rideDate to be the first and distance to be the fourth. This is how I use the newRideValues collection. new BikingLogsContentProvider().insert(CONTENT_URI, newRideValues); Any ideas and suggestions would be very welcome.
-- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

