Android alertdialog on exit on back press | Exit/No Menu

Android confirmation dialog on back press YES NO to exit application Android alertdialog on exit show Yes No to confirm exit your application when back button is pressed.   package write your package name here; import android.os.Bundle; import; import android.widget.Toast; public class MainActivity extends AppCompatActivity { @Override protectedvoidonCreate(BundlesavedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); } @Override public void

Android Paint example tutorial – 2017 New Fresh Code

Android Paint source code very simple for android beginners Begin with simple android paint source code. Android paint MainActivity.class source code – package; import; import android.content.Context; import; import; import; import android.os.Bundle; import android.view.MotionEvent; import android.view.View; import java.util.ArrayList; import java.util.List; public class MainActivity extends Activity { PaintView paintArea; @Override public void