// Path: UtilSet/src/com/navercorp/utilset/input/KeyboardUtils.java
// public class KeyboardUtils {
// 	private static SoftwareKeyDetector deviceKeyboardDetector;
// 
// 	static {
// 		deviceKeyboardDetector = new SoftwareKeyDetector();
// 	}
// 	
// 	/**
// 	 * Shows keypad
// 	 * 
// 	 * @param context
// 	 * @param view View to have keypad control
// 	 */
// 	public static void showSoftKeyboard(Context context, View view) {
// 		InputMethodManager imm = (InputMethodManager) context
// 				.getSystemService(Context.INPUT_METHOD_SERVICE);
// 		imm.showSoftInput(view, InputMethodManager.SHOW_FORCED);
// 	}
// 
// 	/**
// 	 * Hides keypad
// 	 * 
// 	 * @param context
// 	 * @param view View holding keypad control
// 	 */
// 	public static void hideSoftKeyboard(Context context, View view) {
// 		InputMethodManager imm = (InputMethodManager) context
// 				.getSystemService(Context.INPUT_METHOD_SERVICE);
// 		imm.hideSoftInputFromWindow(view.getWindowToken(), 0);
// 	}
// 
// 	/**
// 	 * Toggles keypad
// 	 * 
// 	 * @param context
// 	 */
// 	public static void toggleKeyPad(Context context) {
// 		InputMethodManager imm = (InputMethodManager) context
// 				.getSystemService(Context.INPUT_METHOD_SERVICE);
// 		if (imm != null) {
// 			imm.toggleSoftInput(InputMethodManager.SHOW_FORCED, 0);
// 		}
// 	}
// 
// 	/**
// 	 * Delayed version of {@link #hideSoftKeyboard(Context, View)
// 	 * hideSoftKeyboard} method
// 	 * 
// 	 * @param context
// 	 * @param view View holding keypad control
// 	 */
// 	public static void delayedHideSoftKeyboard(final Context context,
// 			final View view, int delay) {
// 		TimerTask task = new TimerTask() {
// 			@Override
// 			public void run() {
// 				hideSoftKeyboard(context, view);
// 			}
// 		};
// 
// 		Timer timer = new Timer();
// 		timer.schedule(task, delay);
// 	}
// 
// 	/**
// 	 * Delayed version of {@link #showSoftKeyboard(Context, View)
// 	 * showSoftKeyboard} method
// 	 * 
// 	 * @param context
// 	 * @param view View to have keypad control
// 	 */
// 	public static void delayedShowSoftKeyboard(final Context context,
// 			final View view, int delay) {
// 		TimerTask task = new TimerTask() {
// 			@Override
// 			public void run() {
// 				showSoftKeyboard(context, view);
// 			}
// 		};
// 
// 		Timer timer = new Timer();
// 		timer.schedule(task, delay);
// 	}
// 	
// 	/**
// 	 * Determines if the device has software keys.
// 	 * 
// 	 * @return true if device has software keys; false otherwise
// 	 */
// 	public static boolean hasSoftwareKeys(Context context) {
// 		return deviceKeyboardDetector.hasSoftwareKeys(context);
// 	}
// }


import android.content.Context;
import android.os.Bundle;
import android.support.v4.app.FragmentActivity;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.EditText;
import com.navercorp.utilset.input.KeyboardUtils;
import com.navercorp.utilsettest.R;
package com.navercorp.utilsettest.input;



public class KeyboardUtilsTestActivity extends FragmentActivity implements OnClickListener {
	Context context;
	EditText editTextKeyboardUtils;
	Button keyboardUtilsShowButton;
	Button keyboardUtilsHideButton;
	Button keyboardUtilsToggleButton;
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_keyboardutils);
		editTextKeyboardUtils = (EditText) findViewById(R.id.editTextKeyboardUtils);
		
		keyboardUtilsShowButton = (Button) findViewById(R.id.keyboardUtilsShowButton);
		keyboardUtilsHideButton = (Button) findViewById(R.id.keyboardUtilsHideButton);
		keyboardUtilsToggleButton = (Button) findViewById(R.id.keyboardUtilsToggleButton);
		
		
		keyboardUtilsShowButton.setOnClickListener(this);
		keyboardUtilsHideButton.setOnClickListener(this);
		keyboardUtilsToggleButton.setOnClickListener(this);
		
		context = this;
	}

	@Override
	public void onClick(View v) {
		// TODO Auto-generated method stub
		int id = v.getId();
		switch (id) {
		case R.id.keyboardUtilsShowButton :
// Path: UtilSet/src/com/navercorp/utilset/input/KeyboardUtils.java
// public class KeyboardUtils {
// 	private static SoftwareKeyDetector deviceKeyboardDetector;
// 
// 	static {
// 		deviceKeyboardDetector = new SoftwareKeyDetector();
// 	}
// 	
// 	/**
// 	 * Shows keypad
// 	 * 
// 	 * @param context
// 	 * @param view View to have keypad control
// 	 */
// 	public static void showSoftKeyboard(Context context, View view) {
// 		InputMethodManager imm = (InputMethodManager) context
// 				.getSystemService(Context.INPUT_METHOD_SERVICE);
// 		imm.showSoftInput(view, InputMethodManager.SHOW_FORCED);
// 	}
// 
// 	/**
// 	 * Hides keypad
// 	 * 
// 	 * @param context
// 	 * @param view View holding keypad control
// 	 */
// 	public static void hideSoftKeyboard(Context context, View view) {
// 		InputMethodManager imm = (InputMethodManager) context
// 				.getSystemService(Context.INPUT_METHOD_SERVICE);
// 		imm.hideSoftInputFromWindow(view.getWindowToken(), 0);
// 	}
// 
// 	/**
// 	 * Toggles keypad
// 	 * 
// 	 * @param context
// 	 */
// 	public static void toggleKeyPad(Context context) {
// 		InputMethodManager imm = (InputMethodManager) context
// 				.getSystemService(Context.INPUT_METHOD_SERVICE);
// 		if (imm != null) {
// 			imm.toggleSoftInput(InputMethodManager.SHOW_FORCED, 0);
// 		}
// 	}
// 
// 	/**
// 	 * Delayed version of {@link #hideSoftKeyboard(Context, View)
// 	 * hideSoftKeyboard} method
// 	 * 
// 	 * @param context
// 	 * @param view View holding keypad control
// 	 */
// 	public static void delayedHideSoftKeyboard(final Context context,
// 			final View view, int delay) {
// 		TimerTask task = new TimerTask() {
// 			@Override
// 			public void run() {
// 				hideSoftKeyboard(context, view);
// 			}
// 		};
// 
// 		Timer timer = new Timer();
// 		timer.schedule(task, delay);
// 	}
// 
// 	/**
// 	 * Delayed version of {@link #showSoftKeyboard(Context, View)
// 	 * showSoftKeyboard} method
// 	 * 
// 	 * @param context
// 	 * @param view View to have keypad control
// 	 */
// 	public static void delayedShowSoftKeyboard(final Context context,
// 			final View view, int delay) {
// 		TimerTask task = new TimerTask() {
// 			@Override
// 			public void run() {
// 				showSoftKeyboard(context, view);
// 			}
// 		};
// 
// 		Timer timer = new Timer();
// 		timer.schedule(task, delay);
// 	}
// 	
// 	/**
// 	 * Determines if the device has software keys.
// 	 * 
// 	 * @return true if device has software keys; false otherwise
// 	 */
// 	public static boolean hasSoftwareKeys(Context context) {
// 		return deviceKeyboardDetector.hasSoftwareKeys(context);
// 	}
// }


// Path: UtilSetSampleApp/src/com/navercorp/utilsettest/input/KeyboardUtilsTestActivity.java
import android.content.Context;
import android.os.Bundle;
import android.support.v4.app.FragmentActivity;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.EditText;
import com.navercorp.utilset.input.KeyboardUtils;
import com.navercorp.utilsettest.R;

package com.navercorp.utilsettest.input;



public class KeyboardUtilsTestActivity extends FragmentActivity implements OnClickListener {
	Context context;
	EditText editTextKeyboardUtils;
	Button keyboardUtilsShowButton;
	Button keyboardUtilsHideButton;
	Button keyboardUtilsToggleButton;
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_keyboardutils);
		editTextKeyboardUtils = (EditText) findViewById(R.id.editTextKeyboardUtils);
		
		keyboardUtilsShowButton = (Button) findViewById(R.id.keyboardUtilsShowButton);
		keyboardUtilsHideButton = (Button) findViewById(R.id.keyboardUtilsHideButton);
		keyboardUtilsToggleButton = (Button) findViewById(R.id.keyboardUtilsToggleButton);
		
		
		keyboardUtilsShowButton.setOnClickListener(this);
		keyboardUtilsHideButton.setOnClickListener(this);
		keyboardUtilsToggleButton.setOnClickListener(this);
		
		context = this;
	}

	@Override
	public void onClick(View v) {
		// TODO Auto-generated method stub
		int id = v.getId();
		switch (id) {
		case R.id.keyboardUtilsShowButton :
			KeyboardUtils.showSoftKeyboard(this, editTextKeyboardUtils);