### Positioning AlertDialog at Bottom in Android Source: https://developer.samsung.com/one-ui/comp/dialog This code snippet demonstrates how to create and display an AlertDialog in Android, specifically positioning it at the bottom of the screen using `Gravity.Bottom`. It requires basic Android development knowledge and the Android SDK. ```java AlertDialog.Builder builder = new AlertDialog.Builder(MainActivity.this); builder.setTitle("Title"); .setMessage("Message"); .setPositiveButton("OK", null); .setNegativeButton("Cancel", null); AlertDialog alertDialog = builder.create(); alertDialog.getWindow().setGravity(Gravity.Bottom); alertDialog.show(); ```