Code example for GregorianCalendar

Methods: formatsetTimeInMillis

0
			convertView.setTag(holder);
		} else 
			holder = (ViewHolder) convertView.getTag();
 
		if (holder.text1 != null) {
			GregorianCalendar time = new GregorianCalendar();
			time.setTimeInMillis(Long.parseLong(message.getTimestamp()));
			holder.text1
					.setText(DateFormat.format("dd MMM yyyy, h:mmaa", time));
		} 
		if (holder.text2 != null) {
			holder.text2.setText(message.getMessage());
		} 
 
		return convertView;
	} 
 
	@Override 
	public boolean areAllItemsEnabled() { 
		return false; 
Experience pair programming with AI  Get Codota for Java