Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8506851
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T02:42:21+00:00 2026-06-11T02:42:21+00:00

Dialog dialog = new AlertDialog.Builder(Activity01.this) .setTitle(Login hint) .setMessage(Here needs your login!) .setPositiveButton(…) .setNeutralButton(… ).create();

  • 0
Dialog dialog = new AlertDialog.Builder(Activity01.this)
                .setTitle("Login hint")
                .setMessage("Here needs your login!")
                .setPositiveButton(...)
                .setNeutralButton(...
                ).create();

What kind of grammar it is? I cannot understand why those dots are one by one? And the create() is for Builder() or for setNeutralButton()?

Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T02:42:23+00:00Added an answer on June 11, 2026 at 2:42 am

    Builder is a static inner class of AlertDialog. Each call returns this allowing you to chain methods. Finally you call create() to create the actual dialog. This is basic Java and has little to do with Android, besides the fact that Android uses this pattern a lot.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Here is my code: chartDialog = new Dialog(item_activity.this); chartDialog.setContentView(R.layout.customlayout); chartDialog.setTitle(Title ); TextView textItemDetailsDialog =
I have an AlertDialog in the activity I used, as: AlertDialog.Builder ad = new
I've got this dialog (I'm simplifying my use case): class EditShoppingListDialog extends AlertDialog {
When executing the following code: OpenFileDialog dialog = new OpenFileDialog(); DialogResult result = dialog.ShowDialog();
I'm writing a script that will constantly scan iTunes for new dialog boxes and
I have a function to show Dialog. public Dialog sendSMS(){ Dialog dialog = new
since the new Auth Dialog from Facebook (for my App & homepage), I cannot
I would like to create a 'New Document' dialog similar to the Office 2007
I am looking for a way to programatically open the New Document dialog in
I have a jqgrid with the add dialog enabled for adding new rows. The

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.