diff options
Diffstat (limited to 'src/net')
-rw-r--r-- | src/net/hoopajoo/android/SoftKeys/ConfigureExtra.java | 14 | ||||
-rw-r--r-- | src/net/hoopajoo/android/SoftKeys/CustomKey.java | 38 | ||||
-rw-r--r-- | src/net/hoopajoo/android/SoftKeys/Generator.java | 1 | ||||
-rw-r--r-- | src/net/hoopajoo/android/SoftKeys/Globals.java | 1 | ||||
-rw-r--r-- | src/net/hoopajoo/android/SoftKeys/InputSmoother.java | 4 | ||||
-rw-r--r-- | src/net/hoopajoo/android/SoftKeys/Keys.java | 17 | ||||
-rw-r--r-- | src/net/hoopajoo/android/SoftKeys/QuickDoc.java | 13 | ||||
-rw-r--r-- | src/net/hoopajoo/android/SoftKeys/SendInput.java | 37 | ||||
-rw-r--r-- | src/net/hoopajoo/android/SoftKeys/SoftKeysService.java | 8 |
9 files changed, 3 insertions, 130 deletions
diff --git a/src/net/hoopajoo/android/SoftKeys/ConfigureExtra.java b/src/net/hoopajoo/android/SoftKeys/ConfigureExtra.java index 51f9fa6..ead3efd 100644 --- a/src/net/hoopajoo/android/SoftKeys/ConfigureExtra.java +++ b/src/net/hoopajoo/android/SoftKeys/ConfigureExtra.java @@ -18,29 +18,15 @@ */ package net.hoopajoo.android.SoftKeys; -import java.util.ArrayList; -import java.util.Iterator; import java.util.List; import android.app.Activity; -import android.content.Intent; import android.content.SharedPreferences; -import android.content.pm.PackageInfo; -import android.content.pm.PackageManager; -import android.content.pm.ResolveInfo; -import android.net.Uri; import android.os.Bundle; -import android.preference.ListPreference; -import android.preference.Preference; -import android.preference.PreferenceActivity; import android.preference.PreferenceManager; -import android.util.Log; import android.view.View; import android.view.View.OnClickListener; -import android.webkit.WebView; -import android.webkit.WebViewClient; import android.widget.ArrayAdapter; -import android.widget.Button; import android.widget.Spinner; public class ConfigureExtra extends Activity implements OnClickListener { diff --git a/src/net/hoopajoo/android/SoftKeys/CustomKey.java b/src/net/hoopajoo/android/SoftKeys/CustomKey.java index 1e18ee0..b6931e6 100644 --- a/src/net/hoopajoo/android/SoftKeys/CustomKey.java +++ b/src/net/hoopajoo/android/SoftKeys/CustomKey.java @@ -18,45 +18,7 @@ */ package net.hoopajoo.android.SoftKeys; -import java.io.File; -import java.io.FileOutputStream; import java.util.ArrayList; -import java.util.Collections; -import java.util.HashMap; -import java.util.Iterator; -import java.util.List; -import java.util.Map; - -import android.app.Activity; -import android.app.Notification; -import android.app.NotificationManager; -import android.app.PendingIntent; -import android.content.Context; -import android.content.Intent; -import android.content.SharedPreferences; -import android.content.pm.PackageInfo; -import android.content.pm.PackageManager; -import android.content.pm.ResolveInfo; -import android.graphics.drawable.BitmapDrawable; -import android.graphics.drawable.Drawable; -import android.net.Uri; -import android.os.Bundle; -import android.os.Handler; -import android.preference.PreferenceManager; -import android.util.Log; -import android.view.KeyEvent; -import android.view.Menu; -import android.view.MenuInflater; -import android.view.MenuItem; -import android.view.View; -import android.view.ViewGroup; -import android.view.WindowManager; -import android.view.View.OnClickListener; -import android.view.View.OnLongClickListener; -import android.view.View.OnTouchListener; -import android.widget.ImageButton; -import android.widget.RemoteViews; -import android.widget.Toast; public class CustomKey { public String mName; diff --git a/src/net/hoopajoo/android/SoftKeys/Generator.java b/src/net/hoopajoo/android/SoftKeys/Generator.java index 715a104..ace3ee1 100644 --- a/src/net/hoopajoo/android/SoftKeys/Generator.java +++ b/src/net/hoopajoo/android/SoftKeys/Generator.java @@ -24,7 +24,6 @@ import android.content.res.Resources; import android.graphics.Bitmap; import android.graphics.Canvas; import android.graphics.Matrix; -import android.graphics.Paint; import android.graphics.Shader; import android.graphics.Bitmap.Config; import android.graphics.Shader.TileMode; diff --git a/src/net/hoopajoo/android/SoftKeys/Globals.java b/src/net/hoopajoo/android/SoftKeys/Globals.java index 992805b..b481995 100644 --- a/src/net/hoopajoo/android/SoftKeys/Globals.java +++ b/src/net/hoopajoo/android/SoftKeys/Globals.java @@ -22,7 +22,6 @@ import java.io.File; import java.io.FileOutputStream; import java.io.InputStream; import java.io.OutputStream; -import java.util.ArrayList; import java.util.Iterator; import java.util.List; diff --git a/src/net/hoopajoo/android/SoftKeys/InputSmoother.java b/src/net/hoopajoo/android/SoftKeys/InputSmoother.java index 3668181..857cabd 100644 --- a/src/net/hoopajoo/android/SoftKeys/InputSmoother.java +++ b/src/net/hoopajoo/android/SoftKeys/InputSmoother.java @@ -19,11 +19,7 @@ package net.hoopajoo.android.SoftKeys; import java.util.ArrayList; -import java.util.Iterator; import java.util.List; -import java.util.ListIterator; - -import android.util.Log; // keeps a list of points to drop outliers that make your drag jitter public class InputSmoother { diff --git a/src/net/hoopajoo/android/SoftKeys/Keys.java b/src/net/hoopajoo/android/SoftKeys/Keys.java index fa25ba9..edbabe0 100644 --- a/src/net/hoopajoo/android/SoftKeys/Keys.java +++ b/src/net/hoopajoo/android/SoftKeys/Keys.java @@ -18,35 +18,22 @@ */ package net.hoopajoo.android.SoftKeys; -import java.io.File; -import java.io.FileOutputStream; import java.util.ArrayList; -import java.util.Collections; -import java.util.HashMap; import java.util.Iterator; import java.util.List; -import java.util.Map; import android.app.Activity; -import android.app.Notification; -import android.app.NotificationManager; -import android.app.PendingIntent; -import android.content.Context; import android.content.Intent; import android.content.SharedPreferences; import android.content.pm.PackageInfo; import android.content.pm.PackageManager; import android.content.pm.ResolveInfo; -import android.graphics.drawable.BitmapDrawable; -import android.graphics.drawable.Drawable; -import android.net.Uri; import android.os.Bundle; import android.os.Handler; import android.preference.PreferenceManager; import android.util.Log; import android.view.KeyEvent; import android.view.Menu; -import android.view.MenuInflater; import android.view.MenuItem; import android.view.View; import android.view.ViewGroup; @@ -55,8 +42,6 @@ import android.view.View.OnClickListener; import android.view.View.OnLongClickListener; import android.view.View.OnTouchListener; import android.widget.ImageButton; -import android.widget.RemoteViews; -import android.widget.Toast; public class Keys extends Activity implements OnClickListener, OnLongClickListener { public static String ACTION_HOME = "net.hoopajoo.android.SoftKeys.KEY_HOME"; @@ -413,6 +398,7 @@ public class Keys extends Activity implements OnClickListener, OnLongClickListen } } + /* // calling this will run the desired home action in the specified time unless canceled by // a newer action like another home tap private void post_delayed_home( String action ) { @@ -420,6 +406,7 @@ public class Keys extends Activity implements OnClickListener, OnLongClickListen clear_delayed_home(); mHandler.postDelayed( delayed_action, delayed_action_time ); } + */ private void clear_delayed_home() { mHandler.removeCallbacks( delayed_action ); diff --git a/src/net/hoopajoo/android/SoftKeys/QuickDoc.java b/src/net/hoopajoo/android/SoftKeys/QuickDoc.java index 7e0ac76..c6ca80c 100644 --- a/src/net/hoopajoo/android/SoftKeys/QuickDoc.java +++ b/src/net/hoopajoo/android/SoftKeys/QuickDoc.java @@ -18,26 +18,13 @@ */ package net.hoopajoo.android.SoftKeys; -import java.util.ArrayList; -import java.util.Iterator; -import java.util.List; - import android.app.Activity; import android.content.Intent; -import android.content.pm.PackageInfo; -import android.content.pm.PackageManager; -import android.content.pm.ResolveInfo; import android.net.Uri; import android.os.Bundle; -import android.preference.ListPreference; -import android.preference.Preference; -import android.preference.PreferenceActivity; -import android.util.Log; import android.view.View; -import android.view.View.OnClickListener; import android.webkit.WebView; import android.webkit.WebViewClient; -import android.widget.Button; public class QuickDoc extends Activity { /** Called when the activity is first created. */ diff --git a/src/net/hoopajoo/android/SoftKeys/SendInput.java b/src/net/hoopajoo/android/SoftKeys/SendInput.java index dd15179..b8538a8 100644 --- a/src/net/hoopajoo/android/SoftKeys/SendInput.java +++ b/src/net/hoopajoo/android/SoftKeys/SendInput.java @@ -18,44 +18,9 @@ */ package net.hoopajoo.android.SoftKeys; -import java.io.File; -import java.io.FileOutputStream; -import java.util.Collections; -import java.util.HashMap; -import java.util.Iterator; -import java.util.List; -import java.util.Map; - import android.app.Activity; -import android.app.Notification; -import android.app.NotificationManager; -import android.app.PendingIntent; -import android.content.Context; import android.content.Intent; -import android.content.SharedPreferences; -import android.content.pm.PackageInfo; -import android.content.pm.PackageManager; -import android.content.pm.ResolveInfo; -import android.graphics.drawable.BitmapDrawable; -import android.graphics.drawable.Drawable; -import android.net.Uri; import android.os.Bundle; -import android.os.Handler; -import android.preference.PreferenceManager; -import android.util.Log; -import android.view.KeyEvent; -import android.view.Menu; -import android.view.MenuInflater; -import android.view.MenuItem; -import android.view.View; -import android.view.ViewGroup; -import android.view.WindowManager; -import android.view.View.OnClickListener; -import android.view.View.OnLongClickListener; -import android.view.View.OnTouchListener; -import android.widget.ImageButton; -import android.widget.RemoteViews; -import android.widget.Toast; // this is just a stub to handle intent calls public class SendInput extends Activity { @@ -94,7 +59,7 @@ public class SendInput extends Activity { } } - + app.sendKeys( new int[] { keyid } ); this.finish(); } diff --git a/src/net/hoopajoo/android/SoftKeys/SoftKeysService.java b/src/net/hoopajoo/android/SoftKeys/SoftKeysService.java index d339d22..0795e03 100644 --- a/src/net/hoopajoo/android/SoftKeys/SoftKeysService.java +++ b/src/net/hoopajoo/android/SoftKeys/SoftKeysService.java @@ -21,16 +21,12 @@ package net.hoopajoo.android.SoftKeys; import java.util.HashMap; import java.util.Map; -import android.app.AlertDialog; import android.app.Service; -import android.content.Context; import android.content.Intent; import android.content.SharedPreferences; import android.graphics.PixelFormat; import android.hardware.SensorManager; import android.os.IBinder; -import android.os.PowerManager; -import android.preference.ListPreference; import android.preference.PreferenceManager; import android.util.Log; import android.view.Display; @@ -48,14 +44,10 @@ import android.view.View.OnTouchListener; import android.view.animation.AlphaAnimation; import android.view.animation.Animation; import android.view.animation.LayoutAnimationController; -import android.widget.AdapterView; -import android.widget.ArrayAdapter; import android.widget.Button; import android.widget.ImageButton; import android.widget.LinearLayout; -import android.widget.Spinner; import android.widget.Toast; -import android.widget.AdapterView.OnItemSelectedListener; public class SoftKeysService extends Service { private InputSmoother mInputSmoother; |