kanzi默认创建的android工程的AndroidManifest.xml 中的uses-sdk 位置在最后,会导致textureview 播放导致黑屏
正确的顺序如下
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.rightware.kanzi.mytextureview"
android:versionCode="1"
android:versionName="1.0">
<uses-sdk
android:minSdkVersion="14"
android:targetSdkVersion="17" />
<uses-permission android:name="android.permission.CAMERA"/>
<uses-permission android:name="android.permission.WAKE_LOCK" />
<application android:label="@string/app_name" android:icon="@drawable/icon">
<activity android:name="MyTextureView"
android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
android:launchMode="singleTask"
android:configChanges="orientation|keyboardHidden"
android:screenOrientation="landscape"
android:keepScreenOn="true"
android:label="@string/app_name">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
<uses-feature android:glEsVersion="0x00020000"/>
</manifest>