こんにちは、私は Android アプリ (Beginners Stuff) の作成を開始しようとしています。ユーザーがテキストボックスに入力したものはすべて、すべての ID を参照してコードを開始し、すべてを検索したテキストビューに移動したいと考えています。インターネットの周りですが、試してみるたびにエラーが発生するだけで、それを実行できる簡単なコードを手伝ってくれる人がいます。
public class BitActivity extends Activity {
EditText INPUT;
TextView byte1;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_bit);
INPUT = (EditText) findViewById(R.id.input);
byte1 = (TextView) findViewById(R.id.byte1);
}
@Override
public boolean onCreateOptionsMenu(Menu menu) {
// Inflate the menu; this adds items to the action bar if it is present.
getMenuInflater().inflate(R.menu.activity_main, menu);
return true;
}
}