]>
Commit | Line | Data |
---|---|---|
1 | package de.rmdir.ms2debounce; | |
2 | ||
3 | import android.app.Activity; | |
4 | import android.os.Bundle; | |
5 | import android.content.Intent; | |
6 | import android.widget.TextView; | |
7 | ||
8 | public 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 | } |