Can't implement Google API Sample (VoiceRecognition)

可紊 提交于 2019-11-29 13:16:19

Hello Alex Please Use Following XML File:-

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="vertical" android:layout_width="fill_parent"
    android:layout_height="fill_parent">
    <TextView android:layout_width="fill_parent"
        android:layout_height="wrap_content" android:paddingBottom="4dip"
        android:text="prompt" />

    <Button android:id="@+id/btn_speak" android:layout_width="fill_parent"
        android:layout_height="wrap_content" android:text="speak" />

    <ListView android:id="@+id/list" android:layout_width="fill_parent"
        android:layout_height="0dip" android:layout_weight="1" />
</LinearLayout>

then check, your force close error is solved.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!