Android Open Source - MateLightAndroid Main Activity

From Project

Back to project page MateLightAndroid.


The source code is released under:

Apache License

If you think the Android project MateLightAndroid 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 de.cketti.matelight;
//from  w  ww . ja va 2  s .c o m
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;

public class MainActivity extends Activity {

    protected void onCreate(Bundle savedInstanceState) {

        if (savedInstanceState == null) {
                    .add(, new MateLightFragment())

    public boolean onCreateOptionsMenu(Menu menu) {
        getMenuInflater().inflate(, menu);
        return true;

    public boolean onOptionsItemSelected(MenuItem item) {
        int id = item.getItemId();
        if (id == {
            new AboutFragment().show(getFragmentManager(), "about");
            return true;
        return super.onOptionsItemSelected(item);


Java Source Code List