On Mon, Sep 19, 2011 at 5:10 PM, Ab Caballero <a...@mac.com> wrote: > Thanks, Nick! >
Your welcome > I had written a method to do that an inadvertently forgot to call it. > It was driving me crazy. > Sometimes the only you need are some fresh eyes > > On Sep 19, 12:29 pm, Nick Risaro <nris...@gmail.com> wrote: > > On Mon, Sep 19, 2011 at 3:50 PM, Ab Caballero <a...@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+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en