/actionslib/src/com/google/android/marvin/commands/impls/LocationCommand.java

http://eyes-free.googlecode.com/ · Java · 30 lines · 9 code · 8 blank · 13 comment · 0 complexity · 7b3227b503fd94485bb5d723f231184a MD5 · raw file

  1. // Copyright 2010 Google Inc. All Rights Reserved.
  2. package com.google.android.marvin.commands.impls;
  3. import com.google.android.marvin.commands.CommandExecutor;
  4. import android.content.Context;
  5. /**
  6. * A command that provides the current location.
  7. *
  8. * @author clsimon@google.com (Cheryl Simon)
  9. *
  10. */
  11. public class LocationCommand implements CommandExecutor {
  12. // private boolean mUseGpsThisTime = true;
  13. @Override
  14. public String executeCommand(Context context) {
  15. // TODO: Refactor location service to return a single string.
  16. // Guide mGuide = new Guide(context);
  17. // String res = mGuide.speakLocation(mUseGpsThisTime);
  18. // mUseGpsThisTime = !mUseGpsThisTime;
  19. // return res;
  20. return "";
  21. }
  22. }