just concatenate that long value with a non-space quoted value then you can convert easily...
On Fri, Apr 29, 2011 at 12:47 PM, Brad Stintson <geek.bin...@gmail.com>wrote: > I use following code to display title and date from database. The date is > in long format. How can I display it in string form using a function. > > Cursor eventsCursor = db.retrieveProEvents(pro_id); > startManagingCursor(eventsCursor); > > String[] from = new > String[]{DBAdapter.KEY_TITLE,DBAdapter.KEY_DATE}; > > int[] to = new int[]{R.id.title,R.id.date}; > > ListAdapter event = > new SimpleCursorAdapter(this, R.layout.row, eventsCursor, > from, to); > setListAdapter(event); > > -- > 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 -- *------------------------------------------ Mohammed Hossain Doula Software Engineer desme INC.* *www: http://www.hossaindoula.com @: ron...@desme.com <hossaindo...@nibssolutionslimited.com>* *facebook: http://www.facebook.com/ROnyWorld* *twitter: http://www.twitter.com/hossaindoula* *blogspot: hossaindoula.blogspot.com GSM: 00880-167-4347101* -- 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