]> git.zerfleddert.de Git - ms2-fixes/blame_incremental - MS2Debounce/src/de/rmdir/ms2debounce/MS2Debounce.java
Check if it is safe to load the module on boot
[ms2-fixes] / MS2Debounce / src / de / rmdir / ms2debounce / MS2Debounce.java
... / ...
CommitLineData
1package de.rmdir.ms2debounce;
2
3import android.app.Activity;
4import android.os.Bundle;
5import android.content.Intent;
6import android.widget.TextView;
7
8public class MS2Debounce extends Activity
9{
10 @Override
11 public void onCreate(Bundle savedInstanceState)
12 {
13 super.onCreate(savedInstanceState);
14
15 DebounceModuleHelper module = new DebounceModuleHelper(this);
16
17 if (!module.isLoaded()) {
18 module.loadModule();
19 }
20
21 setContentView(R.layout.main);
22
23 TextView text = (TextView)findViewById(R.id.text);
24 text.setText("You will soon be able to set the debounce_delay here.\nModule loaded: " + module.isLoaded() + "\ndebounce_delay: " + module.getDelay() + "ms\nsafe_to_load: " + module.is_safe_to_load());
25 }
26}
Impressum, Datenschutz