I don\'t know how to transform timestamp to date. I have:
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setConten
public static String getTime(long timeStamp){
try{
Calendar calendar = Calendar.getInstance();
calendar.setTimeInMillis(timeStamp * 1000);
SimpleDateFormat sdf = new SimpleDateFormat("dd-MMM-yyyy hh:mm:ss a");
Date date = (Date) calendar.getTime();
return sdf.format(date);
}catch (Exception e) {
}
return "";
}