PageRenderTime 10ms CodeModel.GetById 1ms app.highlight 4ms RepoModel.GetById 1ms app.codeStats 1ms

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