PageRenderTime 20ms CodeModel.GetById 13ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 1ms

/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 */
16package com.svox.pico.unbundled;
17
18import android.app.Activity;
19import android.os.Bundle;
20
21/*
22 * The Java portion of this TTS plugin engine app does nothing.
23 * This activity is only here so that the native code can be
24 * wrapped up inside an apk file.
25 *
26 * The file path structure convention is that the native library
27 * implementing TTS must be a file placed here:
28 * /data/data/<PACKAGE_NAME>/lib/libtts<ACTIVITY_NAME_LOWERCASED>.so
29 * Example:
30 * /data/data/com.svox.pico/lib/libttspico.so
31 */
32
33public class Pico extends Activity {
34    @Override
35    public void onCreate(Bundle savedInstanceState) {
36        super.onCreate(savedInstanceState);
37        // The Java portion of this does nothing.
38        // This activity is only here so that everything
39        // can be wrapped up inside an apk file.
40        finish();
41    }
42}