Codota Logo
SurfaceView.setKeepScreenOn
Code IndexAdd Codota to your IDE (free)

How to use
setKeepScreenOn
method
in
android.view.SurfaceView

Best Java code snippets using android.view.SurfaceView.setKeepScreenOn (Showing top 10 results out of 315)

  • Common ways to obtain SurfaceView
private void myMethod () {
SurfaceView s =
  • Codota IconContext context;new SurfaceView(context)
  • Codota IconView view;(SurfaceView) view.findViewById(id)
  • Codota IconViewStub viewStub;(SurfaceView) viewStub.inflate()
  • Smart code suggestions by Codota
}
origin: hss01248/FaceDetect

private void initData() {
  svPreview.getHolder().addCallback(this);
  svPreview.setKeepScreenOn(true);
}
origin: 18702953620/DouDemo

private void initView() {
  surfaceHolder = svRecord.getHolder();
  surfaceHolder.addCallback(this);
  //设置一些参数方便后面绘图
  svRecord.setFocusable(true);
  svRecord.setKeepScreenOn(true);
  svRecord.setFocusableInTouchMode(true);
  pbRecord.setMax(100);
  pbRecord.setProgress(0);
}
origin: 18702953620/DouDemo

private void initView() {
  surfaceHolder = svRecord.getHolder();
  surfaceHolder.addCallback(this);
  //设置一些参数方便后面绘图
  svRecord.setFocusable(true);
  svRecord.setKeepScreenOn(true);
  svRecord.setFocusableInTouchMode(true);
  pbRecord.setMax(100);
  pbRecord.setProgress(0);
}
origin: hss01248/FaceDetect

private void initData() {
  handleThread = new HandlerThread("dt");
  handleThread.start();
  detectHandler = new Handler(handleThread.getLooper());
  svPreview.getHolder().addCallback(this);
  svPreview.setKeepScreenOn(true);
  facedetecter = new FaceDetecter();
  facedetecter.init(this, Global.FACEPP_KEY);
  facedetecter.setTrackingMode(true);
}
origin: hschott/Camdroid

private void initView(Context context) {
  Log.d(TAG, "initView()");
  this.setBackgroundColor(this.getResources().getColor(
      android.R.color.black));
  this.mSurfaceView = new SurfaceView(context);
  this.mSurfaceView.setKeepScreenOn(true);
  this.addView(this.mSurfaceView, 0);
  // Install a SurfaceHolder.Callback so we get notified when the
  // underlying surface is created and destroyed.
  SurfaceHolder holder = this.mSurfaceView.getHolder();
  holder.addCallback(this);
  this.setOnClickListener(this.onClickListener);
}
origin: nglauber/dominando_android2

@Override
public void onCreate(Bundle savedInstanceState) {
  super.onCreate(savedInstanceState);
  setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);
  mSurfaceView = new SurfaceView(this);
  mSurfaceView.setKeepScreenOn(true);
  mSurfaceHolder = mSurfaceView.getHolder();
  mSurfaceHolder.addCallback(this);
  setContentView(mSurfaceView);
  mBolinha = new Bolinha(this);
  mSensorManager = (SensorManager)getSystemService(SENSOR_SERVICE);
}
protected void onResume() {
origin: retomeier/Wrox-ProfessionalAndroid-4E

surfaceView.setKeepScreenOn(true);
origin: stackoverflow.com

    (SurfaceView)findViewById(R.id.surfaceView1);
surfaceView1.setKeepScreenOn(true);
    (SurfaceView)findViewById(R.id.surfaceView2);
surfaceView2.setKeepScreenOn(true);
origin: stackoverflow.com

cameraPreview.setKeepScreenOn(true);
origin: EasyDSS/EasyCamera

    getResources().getDisplayMetrics().heightPixels);
surfaceView.setOnClickListener(this);
surfaceView.setKeepScreenOn(true);
android.viewSurfaceViewsetKeepScreenOn

Popular methods of SurfaceView

  • getHolder
  • <init>
  • onMeasure
  • onInitializeAccessibilityEvent
  • onInitializeAccessibilityNodeInfo
  • setLayoutParams
  • onKeyDown
  • setOnTouchListener
  • onDetachedFromWindow
  • setVisibility
  • getLayoutParams
  • onAttachedToWindow
  • getLayoutParams,
  • onAttachedToWindow,
  • onTouchEvent,
  • onSizeChanged,
  • setOnClickListener,
  • getHeight,
  • getWidth,
  • onLayout,
  • setZOrderOnTop

Popular in Java

  • Creating JSON documents from java classes using gson
  • setContentView (Activity)
  • onCreateOptionsMenu (Activity)
  • getSupportFragmentManager (FragmentActivity)
    Return the FragmentManager for interacting with fragments associated with this activity.
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • JComboBox (javax.swing)
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.This exception may include information for locating the er
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now