editText.addTextChangedListener(new TextWatcher() {
public void afterTextChanged(Editable s) {
//SecondAt.mBluetoothIO.sendMessage("back");
}
public void beforeTextChanged(CharSequence s, int start, int count, int after){
// SecondAt.mBluetoothIO.sendMessage("back");
}
public void onTextChanged(CharSequence s, int start, int before, int count) {
if (s.toString().length() == 1) {
SecondAt.mBluetoothIO.sendMessage("back");
Toast toast1 = Toast.makeText(getApplicationContext(), s, Toast.LENGTH_SHORT);
toast1.show();
}
else
{
//****----"here i need to clear the CharSequence s" ----*****
}
}});
私はCharSequenceをクリアする必要があるので、キーボードから各鍵を読み取ってブルートゥースキーボードを作ることができます。 誰か助けてください。アンドロイドのCharSequcenceの明確な要素は?
卿私は、更新の答えを見て、CharSequnceの –
@VishnuViswanathanをクリアする必要があります。ところで、なぜそれは大変でしたか?あなたは何かを達成しようとしていますか? –
私は実際にソフトキーボードの各キーを読み取って、PC用のBluetoothキーボードを作成したいと思います。私を助けてくれますか? –