/paw/src/com/google/marvin/paw/WidgetGlueActivity.java

http://eyes-free.googlecode.com/ · Java · 20 lines · 14 code · 3 blank · 3 comment · 0 complexity · 90ccbcd10da8b36a58b99306c6ffffdf MD5 · raw file

  1. package com.google.marvin.paw;
  2. import android.app.Activity;
  3. import android.content.Intent;
  4. import android.util.Log;
  5. // This activity is fairly stupid - it just sends the button presses to the
  6. // Service.
  7. public class WidgetGlueActivity extends Activity {
  8. @Override
  9. protected void onResume() {
  10. super.onResume();
  11. //Log.e("PAW", "WidgetGlueActivity called with " + getIntent().getAction());
  12. Intent serviceIntent = new Intent("com.google.marvin.paw.runWidget");
  13. serviceIntent.putExtra("input", getIntent().getAction());
  14. this.startService(serviceIntent);
  15. finish();
  16. }
  17. }