Thanks, Nick! I had written a method to do that an inadvertently forgot to call it. It was driving me crazy.
On Sep 19, 12:29 pm, Nick Risaro <[email protected]> wrote: > On Mon, Sep 19, 2011 at 3:50 PM, Ab Caballero <[email protected]> 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 [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

