Code example for Context

Methods: getString

0
        return builder;
    } 
 
    public static AlertDialog.Builder newYesNoDialog(final Context context, String title,
            String message, int iconId, OnClickListener listener) {
        return newYesNoDialog(context, title, message, 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 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),