passing data from one activity to another activity in android using intent. Suppose two Activity : FirstActivity and SecondActivity. if we want to send data from FirstActivity to SecondActivity then we move from another activity using Intent We Send data in key-value form.
Here Timestamp means UNIX timestamp,convert to date and time in android. suppose timestamp is 1434624342( http://www.currenttimestamp.com/) and show into DD-MM-YYYY and HH:MM format.
long time=1434624342;
Calendar cal = Calendar.getInstance(Locale.ENGLISH);
cal.setTimeInMillis(time);
String date = DateFormat.format("dd-MM-yyyy hh:mma", cal).toString();