This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

at master 1.7 kB View raw
1<!-- AndroidManifest snippet — the activity-level orientation lock that the kima app 2 must include if it ships the rect 4:3 model and wants the simplest integration. 3 4 Source: sample/composeApp/src/androidMain/AndroidManifest.xml in the R&D project. 5 6 The single critical line is `android:screenOrientation="landscape"` on whatever 7 activity hosts the camera + detector. Without this, the camera frame arrives 8 portrait-rotated and the detector sees a 3:4 input instead of 4:3, causing 9 letterbox padding to fight the model. 10 11 If the kima app needs to support both portrait AND landscape, see the 12 "Option B" rotation fallback in ANDROID_INTEGRATION.md. 13--> 14 15<manifest xmlns:android="http://schemas.android.com/apk/res/android"> 16 17 <uses-feature 18 android:name="android.hardware.camera" 19 android:required="false" /> 20 <uses-permission android:name="android.permission.CAMERA" /> 21 22 <application 23 android:icon="@mipmap/ic_launcher" 24 android:label="kima" 25 android:theme="@android:style/Theme.Material.NoActionBar"> 26 27 <activity 28 android:name=".MainActivity" 29 android:configChanges="orientation|screenSize|screenLayout|keyboardHidden" 30 android:exported="true" 31 android:launchMode="singleInstance" 32 android:screenOrientation="landscape" 33 android:windowSoftInputMode="adjustPan"> 34 <intent-filter> 35 <action android:name="android.intent.action.MAIN" /> 36 <category android:name="android.intent.category.LAUNCHER" /> 37 </intent-filter> 38 </activity> 39 40 <!-- ... other providers, services, etc ... --> 41 42 </application> 43 44</manifest>