title: How to handle Time Zone and Day Light Saving in android?
body: <p>I'm writing this application which needs to handle DST in android. I've written a small test code that would do the following. In addition I'm not using network provided date time in this case. </p>
  
  <p>If i run the application and display the current time and go to android settings and change the time zone without exiting the application and then get the current Time from the application it wouldn't give me the new time change. </p>
  
  <p><strong>UPDATE</strong> Following is the code</p>
  
  <pre><code>btnStart.setOnClickListener(new OnClickListener() {
  
              @Override
              public void onClick(View v) {
                  // TODO Auto-generated method stub
                  Date dt = new Date(System.currentTimeMillis());
                  txtViewStart.setText(sdf.format(dt));
              }
          });
  
          btnEnd.setOnClickListener(new OnClickListener() {
  
              @Override
              public void onClick(View v) {
                  // TODO Auto-generated method stub
  
                  Date dt = new Date(System.currentTimeMillis());
                  txtViewEnd.setText(sdf.format(dt));
  
              }
          });
  </code></pre>
  
  <p>How can I handle this issue as well as in case of Day Light Saving  as well</p>