Android Open Source - android-whatsthatcolor About Activity






From Project

Back to project page android-whatsthatcolor.

License

The source code is released under:

GNU General Public License

If you think the Android project android-whatsthatcolor 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.gmail.notrupertthorne.whatsthatcolor;
//from  w  w w .j  a  v a 2 s .co  m
/*
Copyright 2014 Niklas Thrne

This file is part of What's That Color.

What's That Color is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

What's That Color is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with What's That Color.  If not, see <http://www.gnu.org/licenses/>.
*/

import android.os.Bundle;
import android.support.v7.app.ActionBarActivity;
import android.view.Menu;
import android.view.MenuItem;

/**
 * This type provides the implementation of the About activity. 
 */
public class AboutActivity extends ActionBarActivity
{

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

  @Override
  public boolean onOptionsItemSelected(MenuItem item)
  {
    // Handle action bar item clicks here. The action bar will
    // automatically handle clicks on the Home/Up button, so long
    // as you specify a parent activity in AndroidManifest.xml.
    final int l_id = item.getItemId();
    if (l_id == R.id.action_settings)
    {
      return true;
    }
    return super.onOptionsItemSelected(item);
  }

  @Override
  protected void onCreate(Bundle savedInstanceState)
  {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_about);
  }
}




Java Source Code List

com.gmail.notrupertthorne.whatsthatcolor.AboutActivity.java
com.gmail.notrupertthorne.whatsthatcolor.CameraPreview.java
com.gmail.notrupertthorne.whatsthatcolor.CrosshairView.java
com.gmail.notrupertthorne.whatsthatcolor.LicenseActivity.java
com.gmail.notrupertthorne.whatsthatcolor.MainActivity.java