I'm making an Android IME. How do I add a "Settings" list item in the "Language & Keyboard" settings screen?
Asked Answered
D

2

6

... like "Swype settings" in this picture. Been searching for hours on how to do this. Going to go insane. Help appreciated.

Decade answered 14/9, 2010 at 7:26 Comment(0)
D
7

Finally found it by looking at the source code for S9.

In method.xml, you just add the attribute android:settingsActivity="com.package.SettingsClass" to <input-method>, so the entire file looks like:

<?xml version="1.0" encoding="utf-8"?>
<input-method xmlns:android="http://schemas.android.com/apk/res/android"
android:settingsActivity="com.package.SettingsClass" />
Decade answered 14/9, 2010 at 9:57 Comment(0)
R
0

I haven't tried it myself but do you have the permissions and intent filters discussed in this Android Developers Blog? Particularly the optional Settings activity defined in the AndroidManifest.xml.

Repellent answered 14/9, 2010 at 7:37 Comment(1)
Yes, my manifest looks almost identical to the one you have linked. Additionally, I've tried adding different <category> in <intent-filter>, but to no avail.Decade

© 2022 - 2024 — McMap. All rights reserved.