Skip to main content

Posts

Showing posts with the label Android tutorial

Make your own tic-tac-toe game on Android

Now stay tuned with the new videos.Just click the button mention below of youtube: App Code for MainActivity.java: import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import android.widget.Button; import android.widget.Toast; public class MainActivity extends AppCompatActivity implements View.OnClickListener { int chance=0;     Button btn1,btn2,btn3,btn4,btn5,btn6,btn7,btn8,btn9,reset;     @Override     protected void onCreate(Bundle savedInstanceState) {         super.onCreate(savedInstanceState);         setContentView(R.layout.activity_main);     btn1=(Button)findViewById(R.id.btn1);     btn2=(Button)findViewById(R.id.btn2);     btn3=(Button)findViewById(R.id.btn3);     btn4=(Button)findViewById(R.id.btn4);     btn5=(Button)findViewById(R.id.btn5);     b...