###前提・実現したいこと
Visual Studio 2017 for Mac と Xamarin.Androidを使ってカスタムキーボード(IME)を作成しようと思っています。
http://aics-app.sakura.ne.jp/blog/2015/03/02/ソフトウェアキーボードの作り方android/
こちらのサイトを参考にして、まずはAndroid Studioにてキーボードを作ってみてAndroidエミュレータにてIMEのリストに追加、実行が可能なことを確認しました。その後Visual StudioとXamarin.Android環境下でもそれを再現して実行をしてもAndroidエミュレータのIMEのリストに追加されず困っています。
ソースコードはgithubに上げてあります。
https://github.com/Kyome22/DroidCustomKeyboard
xml
1<?xml version="1.0" encoding="utf-8"?> 2<manifest xmlns:android="http://schemas.android.com/apk/res/android" 3 android:versionCode="1" android:versionName="1.0" 4 package="com.kyome.DroidCustomKeyboard" android:installLocation="auto"> 5 <uses-sdk android:minSdkVersion="23" /> 6 <application android:allowBackup="true" android:label="@string/app_name"> 7 <service android:name="TestKeyboard" android:label="@string/test_keyboard" android:permission="android.permission.BIND_INPUT_METHOD"> 8 <meta-data android:name="android.view.im" android:resource="@xml/method"></meta-data> 9 <intent-filter> 10 <action android:name="android.view.InputMethod"></action> 11 </intent-filter> 12 </service> 13 <!-- <activity android:name="com.kyome.DroidCustomKeyboard.Preferences" android.label="@string/settings_name"> 14 <intent-filter> 15 <action android:name="android.intent.action.MAIN"></action> 16 </intent-filter> 17 </activity> --> 18 </application> 19</manifest>
###やってみたこと
実行の設定をいじってエントリポイントをアクティビティではなくサービスにしてみたりしましたが反応は変わりませんでした。
回答3件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。