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 android.support.v7.app.AppCompatActivity; 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 utube.attraction.com.nextgenearn.colorpaint; import android.app.Activity; import android.content.Context; import android.graphics.Canvas; import android.graphics.Color; import android.graphics.Paint; 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