package com.example.android.sunshine.app;

import android.app.Activity;
import android.os.Bundle;
import android.support.wearable.view.WatchViewStub;
import android.widget.TextView;

public class MainActivity extends Activity {

    private TextView mTextView;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        final WatchViewStub stub = (WatchViewStub) findViewById(R.id.watch_view_stub);
        stub.setOnLayoutInflatedListener(new WatchViewStub.OnLayoutInflatedListener() {
            @Override
            public void onLayoutInflated(WatchViewStub stub) {
                mTextView = (TextView) stub.findViewById(R.id.text);
            }
        });
    }
}

@@ -176,16 +176,108 @@
 tView;%0A%0A
+import java.text.DateFormat;%0Aimport java.text.SimpleDateFormat;%0Aimport java.util.Calendar;%0A%0A
 public c
@@ -336,24 +336,42 @@
 xtView m
+Time;%0A    private 
 TextView
 ;%0A%0A    @
@@ -362,16 +362,22 @@
 TextView
+ mDate
 ;%0A%0A    @
@@ -816,82 +816,741 @@
   mT
-extView = (TextView) stub.findViewById(R.id.text);%0A            %7D%0A        %7D
+ime = (TextView) stub.findViewById(R.id.time);%0A                mDate = (TextView) stub.findViewById(R.id.date);%0A%0A                mTime.setText(getCurrentTime());%0A                mDate.setText(getCurrentDate());%0A            %7D%0A        %7D);%0A    %7D%0A%0A    private String getCurrentTime() %7B%0A        Calendar cal = Calendar.getInstance();%0A        DateFormat date = new SimpleDateFormat(%22HH:mm%22);%0A        date.setTimeZone(cal.getTimeZone());%0A        return date.format(cal.getTime());%0A    %7D%0A%0A    private String getCurrentDate() %7B%0A        Calendar cal = Calendar.getInstance();%0A        DateFormat date = new SimpleDateFormat(%22EEE, MMM dd yyyy%22);%0A        date.setTimeZone(cal.getTimeZone());%0A        return date.format(cal.getTime()).toUpperCase(
 );%0A 

Set current time and date