Project

General

Profile

Feature #268 » Chat.java.diff

Diff to Chat.java enabling soft keyboard automatic display - David Harris, 02/01/2011 05:15 AM

View differences:

src/com/beem/project/beem/ui/Chat.java Mon Dec 27 21:50:48 2010 +0100 → src/com/beem/project/beem/ui/Chat.java Mon Jan 31 23:13:13 2011 -0500
56 56
import android.app.Activity;
57 57
import android.app.Dialog;
58 58
import android.content.ComponentName;
59
import android.content.Context;
59 60
import android.content.Intent;
60 61
import android.content.IntentFilter;
61 62
import android.content.ServiceConnection;
......
77 78
import android.view.MenuItem;
78 79
import android.view.View;
79 80
import android.view.ViewGroup;
81
import android.view.WindowManager;
80 82
import android.view.View.OnClickListener;
81 83
import android.view.View.OnKeyListener;
84
import android.view.inputmethod.InputMethodManager;
82 85
import android.widget.BaseAdapter;
83 86
import android.widget.Button;
84 87
import android.widget.EditText;
......
172 175
	mInputField = (EditText) findViewById(R.id.chat_input);
173 176
	mInputField.setOnKeyListener(this);
174 177
	mInputField.requestFocus();
178
    InputMethodManager imm = (InputMethodManager) mInputField.getContext().getSystemService(Context.INPUT_METHOD_SERVICE);
179
	imm.toggleSoftInput(InputMethodManager.SHOW_FORCED, InputMethodManager.HIDE_IMPLICIT_ONLY); 
175 180
	mSendButton = (Button) findViewById(R.id.chat_send_message);
176 181
	mSendButton.setOnClickListener(new OnClickListener() {
177 182
	    @Override
    (1-1/1)