open First Time Popup : AlertDialog « UI « Android






open First Time Popup

    

import android.app.AlertDialog;
import android.content.Context;


class UIHelper {
  
  public static void openFirstTimePopup(final Context context) {
    final String html = "Thank you!";
    final AlertDialog.Builder builder = new AlertDialog.Builder(context).
    setCancelable(true).
    setTitle("Welcome!").
    setMessage(html).
    setNegativeButton("Close",null);

    final AlertDialog di = builder.create();
    
    di.show();
  }
}

   
    
    
    
  








Related examples in the same category

1.show Yes No Prompt
2.show Message
3.show Alert
4.Helper Alert