Java Code Examples for android.widget.TextView.setKeepScreenOn()

The following are Jave code examples for showing how to use setKeepScreenOn() of the android.widget.TextView class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
Example 1
Project: 2017.2-codigo   File: KeepScreenOn2Activity.java   Source Code and License Vote up 5 votes
@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_keep_screen_on2);

    TextView tv = (TextView) findViewById(R.id.textView);
    tv.setKeepScreenOn(true);
}