Skip to content Skip to sidebar Skip to footer

How To Add Preference Of Custom Input Method To Android Settings App?

Recently I've started to develop Android Soft Keyboard and got some problem with preferences. How to add a preferences to Android setting app? I've searched almost all the source

Solution 1:

I've found it myself:

in XML of input method you need to put android:settingsActivity tag with link to your PreferenceActivity class: Example

Solution 2:

Here is an example: set android:settingsActivity in your input-method xml declaration.

<?xml version="1.0" encoding="utf-8"?><input-methodxmlns:android="http://schemas.android.com/apk/res/android"android:settingsActivity="com.justes.yogabook.holo_keyboard.wrapper.SettingsActivity"><subtypeandroid:label="@string/yogabook_holo_keyboard_subtype_label"android:imeSubtypeLocale="en_US"android:imeSubtypeMode="keyboard" /></input-method>

Post a Comment for "How To Add Preference Of Custom Input Method To Android Settings App?"