Add an activity to show an ime switch dialog

Bug: 4671417

Change-Id: I8e29dbfb3d0bbb9270888ac757f53542ce658ba9
This commit is contained in:
satok
2011-06-20 21:38:36 +09:00
parent a662e4975b
commit fb0fd42fa0
2 changed files with 43 additions and 0 deletions

View File

@@ -0,0 +1,31 @@
/*
* Copyright (C) 2011 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.android.settings.inputmethod;
import android.app.Activity;
import android.content.Context;
import android.os.Bundle;
import android.view.inputmethod.InputMethodManager;
public class InputMethodDialogActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
((InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE)).
showInputMethodPicker();
finish();
}
}