title: String timestamp to Calendar in Java?
body: <p>A simple question which I can't find an answer to.
  I have a String which is a timestamp, I want to make it into a calendar object so I then can display it in my Android application.</p>
  
  <p>The code I have so far displays everything makes everything in the 1970:s.</p>
  
  <pre><code>String timestamp = parameter.fieldParameterStringValue;
  timestampLong = Long.parseLong(timestamp);
  Date d = new Date(timestampLong);
  Calendar c = Calendar.getInstance();
  c.setTime(d);
  int year = c.get(Calendar.YEAR);
  int month = c.get(Calendar.MONTH);
  int date = c.get(Calendar.DATE);
  
  dateTextView.setText(year + "-" + month + 1 + "-" + date);
  </code></pre>
  
  <p><strong>UPDATE:</strong>
  Just FYI, the timestamp is from the server is: 1369148661,
  Could that be wrong?</p>