/documentation/TextToSpeech_Plugin_Engine_Examples/PicoUnbundled/src/com/svox/pico/unbundled/Pico.java

http://eyes-free.googlecode.com/ · Java · 42 lines · 10 code · 3 blank · 29 comment · 0 complexity · 154cc3fe7cdeb4412f28cbbd91c97b36 MD5 · raw file

  1. /*
  2. * Copyright (C) 2009 The Android Open Source Project
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. package com.svox.pico.unbundled;
  17. import android.app.Activity;
  18. import android.os.Bundle;
  19. /*
  20. * The Java portion of this TTS plugin engine app does nothing.
  21. * This activity is only here so that the native code can be
  22. * wrapped up inside an apk file.
  23. *
  24. * The file path structure convention is that the native library
  25. * implementing TTS must be a file placed here:
  26. * /data/data/<PACKAGE_NAME>/lib/libtts<ACTIVITY_NAME_LOWERCASED>.so
  27. * Example:
  28. * /data/data/com.svox.pico/lib/libttspico.so
  29. */
  30. public class Pico extends Activity {
  31. @Override
  32. public void onCreate(Bundle savedInstanceState) {
  33. super.onCreate(savedInstanceState);
  34. // The Java portion of this does nothing.
  35. // This activity is only here so that everything
  36. // can be wrapped up inside an apk file.
  37. finish();
  38. }
  39. }