Android Open Source - xkcdclock Main Activity






From Project

Back to project page xkcdclock.

License

The source code is released under:

Apache License

If you think the Android project xkcdclock listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.selbie.xkcdclock;
/*from ww w  . ja  va  2 s.  c om*/
import android.app.Activity;
import android.os.Bundle;
import android.view.Menu;
import android.view.View;

public class MainActivity extends Activity
{

    @Override
    protected void onCreate(Bundle savedInstanceState)
    {
        super.onCreate(savedInstanceState);

        View v = new ClockView(this);

        setContentView(v);
        v.invalidate();
    }

    @Override
    public boolean onCreateOptionsMenu(Menu menu)
    {
        // Inflate the menu; this adds items to the action bar if it is present.
        getMenuInflater().inflate(R.menu.main, menu);
        return true;
    }

}




Java Source Code List

com.selbie.xkcdclock.ClockView.java
com.selbie.xkcdclock.MainActivity.java