X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/ms2-fixes/blobdiff_plain/7bcde8d78d2fe223424e68d52f4ec8b9b2dd3ade..d82ae5893a5e4cc3e082cf767aa7eca7edf87830:/MS2Debounce/src/de/rmdir/ms2debounce/MS2Debounce.java diff --git a/MS2Debounce/src/de/rmdir/ms2debounce/MS2Debounce.java b/MS2Debounce/src/de/rmdir/ms2debounce/MS2Debounce.java index c09869b..654cf5a 100644 --- a/MS2Debounce/src/de/rmdir/ms2debounce/MS2Debounce.java +++ b/MS2Debounce/src/de/rmdir/ms2debounce/MS2Debounce.java @@ -2,14 +2,25 @@ package de.rmdir.ms2debounce; import android.app.Activity; import android.os.Bundle; +import android.content.Intent; +import android.widget.TextView; public class MS2Debounce extends Activity { - /** Called when the activity is first created. */ - @Override - public void onCreate(Bundle savedInstanceState) - { - super.onCreate(savedInstanceState); - setContentView(R.layout.main); - } + @Override + public void onCreate(Bundle savedInstanceState) + { + super.onCreate(savedInstanceState); + + DebounceModuleHelper module = new DebounceModuleHelper(this); + + if (!module.isLoaded()) { + module.loadModule(); + } + + setContentView(R.layout.main); + + TextView text = (TextView)findViewById(R.id.text); + text.setText("You will soon be able to set the debounce_delay here.\nModule loaded: " + module.isLoaded() + "\ndebounce_delay: " + module.getDelay() + "ms"); + } }