+ 1

JAVA help.

Should replace the textview3 with the variable: points. So it counts on the screen when I have the right answers on the app. The textview3 right now has the string "0p". static int points = 0; rightButton.setOnClickListener( new View.OnClickListener() { @Override public void onClick(View view) { points++; Log.d("David", "p: " + points); Intent myIntent = new Intent(PlayActivity.this, PlayActivity.class); startActivity(myIntent); findViewById(R.id.textView3); } }

13th Feb 2018, 10:51 PM
Jim Johansson
Jim Johansson - avatar
1 ответ
+ 2
no
17th Feb 2018, 10:35 PM
Maxim
Maxim - avatar