Here you can find the source of showConnectionErrorDialog(Context c)
public static void showConnectionErrorDialog(Context c)
//package com.java2s; //License from project: Open Source License import android.app.AlertDialog; import android.content.Context; import android.content.DialogInterface; public class Main { public static void showConnectionErrorDialog(Context c) { AlertDialog.Builder builder = new AlertDialog.Builder(c); builder.setTitle("Uh oh") .setMessage(//from ww w . j ava 2s . c o m "We were unable to reach openwatch.net. Please check your network connection and try again.") .setPositiveButton("Bummer", new DialogInterface.OnClickListener() { @Override public void onClick(DialogInterface dialog, int which) { dialog.dismiss(); } }).show(); } }