Code example for Context

Methods: getString

0
                context.getString(android.R.string.no), iconId, listener);
    } 
 
    public static AlertDialog.Builder newYesNoDialog(final Context context, int titleId,
            int messageId, int iconId, OnClickListener listener) {
        return newYesNoDialog(context, context.getString(titleId), context.getString(messageId),
                context.getString(android.R.string.yes), context.getString(android.R.string.no),
                iconId, listener);
    } 
 
    public static AlertDialog.Builder newYesNoDialog(final Context context, int titleId,
            int messageId, int positiveButtonMessageId, int negativeButtonMessageId, int iconId,
            OnClickListener listener) {
        return newYesNoDialog(context, context.getString(titleId), context.getString(messageId),
                context.getString(positiveButtonMessageId),
                context.getString(negativeButtonMessageId), iconId, listener);
    } 
 
    /** 
     * Builds a new AlertDialog to display a simple message 
Stop searching for code, let great code find you!  Add Codota to your java IDE