mirror of
https://github.com/Julow/Unexpected-Keyboard.git
synced 2024-12-03 20:53:36 +01:00
35b4e442ab
This activity points to the system settings page for enabling input methods. This is purely a shortcut but is expected by many users. It could be made more useful in the future or hidden whenever the keyboard is enabled.
27 lines
644 B
Java
27 lines
644 B
Java
package juloo.keyboard2;
|
|
|
|
import android.app.Activity;
|
|
import android.content.Intent;
|
|
import android.content.SharedPreferences;
|
|
import android.content.res.Configuration;
|
|
import android.os.Build;
|
|
import android.os.Bundle;
|
|
import android.provider.Settings;
|
|
import android.view.View;
|
|
import android.widget.Button;
|
|
|
|
public class LauncherActivity extends Activity
|
|
{
|
|
@Override
|
|
public void onCreate(Bundle savedInstanceState)
|
|
{
|
|
super.onCreate(savedInstanceState);
|
|
setContentView(R.layout.launcher_activity);
|
|
}
|
|
|
|
public void launch_imesettings(View _btn)
|
|
{
|
|
startActivity(new Intent(Settings.ACTION_INPUT_METHOD_SETTINGS));
|
|
}
|
|
}
|