Android AnalogClock and DigitalClock

In Android, the AnalogClock is a two-handed clock, one for hour indicator and the other for minute indicator. The DigitalClock is look
like your normal digital watch on hand, which display hours, minutes and seconds in digital format.

Both AnalogClock and DigitalClock are UNABLE to modify the time, if you want to change the time, use “TimePicker” instead.

Open “your.xml” file, add AnalogClock and DigitalClock in XML.

<!--?xml version="1.0" encoding="utf-8"?-->
<linearlayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical">
    <textview android:id="@+id/textView1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Analog Clock" android:textappearance="?android:attr/textAppearanceLarge">
    <analogclock android:id="@+id/analogClock1" android:layout_width="wrap_content" android:layout_height="wrap_content">
    <textview android:id="@+id/textView2" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Digital Clock" android:textappearance="?android:attr/textAppearanceLarge">
    <digitalclock android:id="@+id/digitalClock1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="DigitalClock">
</digitalclock></textview></analogclock></textview></linearlayout>

No idea what can i do with AnalogClock or DigitalClock.

public class MainActivity extends Activity {
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        AnalogClock ac = (AnalogClock) findViewById(R.id.analogClock1);
        //what can i do with AnalogClock?
        DigitalClock dc = (DigitalClock) findViewById(R.id.digitalClock1);
        //what can i do with DigitalClock also? for display only
        
    }
}