Pico.java revision 1284d937084a20b457c280259fff59391129509a
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; 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} 43