我在使用适用于 Android 操作系统的 IME 时遇到问题。我正在尝试获得 BIND_INPUT_METHOD 权限,但它一直说这只是系统应用程序 =\ 一个开源示例(DotDashKeyboard)没有问题地收到它,所以这很奇怪。这是我的.manifest:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.neothefox.romashka"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="15"
android:targetSdkVersion="17" />
<uses-permission android:name="android.permission.BIND_INPUT_METHOD" />
<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
<service
android:name="RomashkaIME"
android:label="RomashkaIME"
android:permission="android.permission.BIND_INPUT_METHOD" >
<intent-filter>
<action android:name="android.view.InputMethod" />
</intent-filter>
<meta-data
android:name="android.view.im"
android:resource="@xml/method" />
</service>
</application>
</manifest>