Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

like image 532
larry Avatar asked Sep 14 '10 07:09

larry


1 Answers

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" />
like image 137
larry Avatar answered Sep 29 '22 07:09

larry