Android Open Source - FreeSketch Sketch Activity






From Project

Back to project page FreeSketch.

License

The source code is released under:

GNU General Public License

If you think the Android project FreeSketch 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

/* FreeSketch - A simple Android app for sketching out ideas etc
 * /*  w  ww  .  j ava  2  s  . c o  m*/
 * Copyright (C) 2012  Nathan Sullivan (nathan.sullivan@gmail.com)
 *
 * This program 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.
 *
 * This program 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 this program.  If not, see <http://www.gnu.org/licenses/>.
 */

package com.nmsbox.freesketch;

import android.os.Bundle;
import android.app.Activity;
import android.util.Log;
import android.view.Menu;
import android.view.MenuItem;
import android.view.SurfaceView;
import android.view.View;
import android.view.Window;
import android.view.WindowManager;
import android.support.v4.app.NavUtils;

public class SketchActivity extends Activity {
  private static final String TAG = "SketchActivity";
  private SurfaceView mView;
  
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        //setContentView(R.layout.activity_sketch);
        
        this.requestWindowFeature(Window.FEATURE_NO_TITLE);
        mView = new SketchView(this);
        mView.setSystemUiVisibility(View.SYSTEM_UI_FLAG_LOW_PROFILE);
        getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
        setContentView(mView);
    }

    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        getMenuInflater().inflate(R.menu.activity_sketch, menu);
        return true;
    }
}




Java Source Code List

com.nmsbox.freesketch.SettingsActivity.java
com.nmsbox.freesketch.SketchActivity.java
com.nmsbox.freesketch.SketchView.java