In my android application, I am using a custom dialog. When I try to show the dialog, it causes an error. I don\'t know what I am doing wrong, and I am really confused.
Try it like this:
import android.app.AlertDialog; new AlertDialog.Builder(YourActivityName.this) .setTitle("Game Paused") .setPositiveButton("OK", null) .show();