]>
Commit | Line | Data |
---|---|---|
7bcde8d7 MG |
1 | package de.rmdir.ms2debounce; |
2 | ||
3 | import android.app.Activity; | |
4 | import android.os.Bundle; | |
ae569a50 | 5 | import android.content.Intent; |
ee6322a1 | 6 | import android.widget.TextView; |
7bcde8d7 MG |
7 | |
8 | public class MS2Debounce extends Activity | |
9 | { | |
226a7d4d MG |
10 | @Override |
11 | public void onCreate(Bundle savedInstanceState) | |
12 | { | |
13 | super.onCreate(savedInstanceState); | |
ae569a50 | 14 | |
5738a32f | 15 | DebounceModuleHelper module = new DebounceModuleHelper(this); |
226a7d4d MG |
16 | |
17 | if (!module.isLoaded()) { | |
18 | module.loadModule(); | |
19 | } | |
ae569a50 | 20 | |
226a7d4d | 21 | setContentView(R.layout.main); |
ee6322a1 MG |
22 | |
23 | TextView text = (TextView)findViewById(R.id.text); | |
08fec0be | 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()); |
226a7d4d | 25 | } |
7bcde8d7 | 26 | } |