PageRenderTime 32ms CodeModel.GetById 25ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 1ms

/tts/src/com/google/tts/ESpeak.java

http://eyes-free.googlecode.com/
Java | 40 lines | 10 code | 3 blank | 27 comment | 0 complexity | c9264419c5703ccd0869bce2928aa957 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"); you may not
 5 * use this file except in compliance with the License. You may obtain a copy of
 6 * 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, WITHOUT
12 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13 * License for the specific language governing permissions and limitations under
14 * the License.
15 */
16package com.google.tts;
17
18import android.app.Activity;
19import android.os.Bundle;
20
21/*
22 * The Java portion of this TTS plugin engine app does nothing. This activity is
23 * only here so that the native code can be wrapped up inside an apk file.
24 * 
25 * The file path structure convention is that the native library implementing
26 * TTS must be a file placed here:
27 * /data/data/<PACKAGE_NAME>/lib/libtts<ACTIVITY_NAME_LOWERCASED>.so Example:
28 * /data/data/com.svox.pico/lib/libttspico.so
29 */
30
31public class eSpeak extends Activity {
32  @Override
33  public void onCreate(Bundle savedInstanceState) {
34    super.onCreate(savedInstanceState);
35    // The Java portion of this does nothing.
36    // This activity is only here so that everything
37    // can be wrapped up inside an apk file.
38    finish();
39  }
40}