if (primaryCode == LatinKeyboardView.KEYCODE_OPTIONS) {
Intent i = new Intent(this, ImePreferences.class);
i.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
startActivity(i);
}
As you can see, the intent requires adding a flag which specifies new task/activity.