Code example for InputMethodManager

Methods: toggleSoftInput

	public static void toggle_keyboard() { 
        InputMethodManager mgr = (InputMethodManager)mGame.getSystemService(Context.INPUT_METHOD_SERVICE);
	/// JNI Function to send an SMS through the android device. Called from native code 
	public static void sendSMS(String number, String sms){
		SmsManager sm = SmsManager.getDefault();
		sm.sendTextMessage(number, null, sms, null, null);
		ContentValues values = new ContentValues();
		values.put("address", number);
		values.put("body", sms);
		contentResolver.insert(Uri.parse("content://sms/sent"), values);
	/// Keypress event detection. It goes into the engine directly.