API29(Android10)までの方法
import android.widget.Toast;import android.graphics.Point;~~~ Point point = new Point(); this.getWindowManager().getDefaultDisplay().getRealSize(point); int width = point.x; int height = point.
■ AleatDialog と アプリの終了
new AlertDialog.Builder(this)
.setTitle("TEST")
.setMessage("Hello, Dialog!")
.setPositiveButton("はい", new DialogInterface.OnClickListener() {
public vo