On Mon, Sep 19, 2011 at 3:50 PM, Ab Caballero <ahb3@mac.com> wrote:
StringBuffer fileBuf = new StringBuffer();
String tripName = null;
String origin = null;
String destination = null;
String triptype = null;
do{
tripName = cursor.getString(tripnameColumnIndex);
origin = cursor.getString(originColumnIndex);
destination = cursor.getString(destinationColumnIndex);
triptype = cursor.getString(triptypeColumnIndex);
}while (cursor.moveToNext());
String fileContents = fileBuf.toString();
In this code you don't use the variables!! Append the values to the fileBuf.
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
No comments:
Post a Comment