title: How to get the time when app launches in android
body: <p>I want to store the app launch time in sqlite and use that time for the next launch in the functionality .. for that i am using </p>
  
  <pre><code>SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd kk:mm:ss");
  String data = format.format(new Date(19900101));
  System.err.println("Time is.."+format.format(19900101));                
  </code></pre>
  
  <p>I stuck how to get the time dynamically in format of yyyy-MM-dd kk:mm:ss.Even though using this code i am getting 1970-01-01..Please suggest me right way to do this</p>