This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Sta{ | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Sta{ | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
AlertDialog.Builder builder | |
= new AlertDialog.Builder(this); | |
builder.setMessage(“Are you sure you want to exit?”) | |
.setCancelable(false) | |
.setPositiveButton(“Yes”, | |
new DialogInterface.OnClickListener() { | |
public void onClick(DialogInterface dialog, int id) { | |
MyActivity.this.finish(); | |
}}) | |
.setNegativeButton(“No”, new DialogInterface.OnClickListener() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
AlertDialog.Builder builder | |
= new AlertDialog.Builder(this); | |
builder.setMessage(“Are you sure you want to exit?”) | |
.setCancelable(false) | |
.setPositiveButton(“Yes”, | |
new DialogInterface.OnClickListener() { | |
public void onClick(DialogInterface dialog, int id) { | |
MyActivity.this.finish(); | |
}}) | |
.setNegativeButton(“No”, new DialogInterface.OnClickListener() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
AlertDialog.Builder builder | |
= new AlertDialog.Builder(this); | |
builder.setMessage(“Are you sure you want to exit?”) | |
.setCancelable(false) | |
.setPositiveButton(“Yes”, | |
new DialogInterface.OnClickListener() { | |
public void onClick(DialogInterface dialog, int id) { | |
MyActivity.this.finish(); | |
}}) | |
.setNegativeButton(“No”, new DialogInterface.OnClickListener() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
AlertDialog.Builder builder | |
= new AlertDialog.Builder(this); | |
builder.setMessage(“Are you sure you want to exit?”) | |
.setCancelable(false) | |
.setPositiveButton(“Yes”, | |
new DialogInterface.OnClickListener() { | |
public void onClick(DialogInterface dialog, int id) { | |
MyActivity.this.finish(); | |
}}) | |
.setNegativeButton(“No”, new DialogInterface.OnClickListener() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
AlertDialog.Builder builder | |
= new AlertDialog.Builder(this); | |
builder.setMessage(“Are you sure you want to exit?”) | |
.setCancelable(false) | |
.setPositiveButton(“Yes”, | |
new DialogInterface.OnClickListener() { | |
public void onClick(DialogInterface dialog, int id) { | |
MyActivity.this.finish(); | |
}}) | |
.setNegativeButton(“No”, new DialogInterface.OnClickListener() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//구현부분 | |
final CharSequence[] items = {"Red", "Green", "Blue"}; | |
AlertDialog.Builder builder = new AlertDialog.Builder(this); | |
builder.setTitle("리스트의 타이틀"); | |
builder.setItems(items, new DialogInterface.OnClickListener() { | |
public void onClick(DialogInterface dialog, int item) { | |
Toast.makeText(getApplicationContext(), | |
items[item], Toast.LENGTH_SHORT).show(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
final CharSequence[] items = {"Red", "Green", "Blue"}; | |
AlertDialog.Builder builder = new AlertDialog.Builder(this); | |
builder.setTitle("Pick a color"); | |
builder.setSingleChoiceItems(items, -1, | |
new DialogInterface.OnClickListener() { | |
public void onClick(DialogInterface dialog, int item) { | |
Toast.makeText(getApplicationContext(), items[item], | |
Toast.LENGTH_SHORT).show(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
final CharSequence[] items = {"Red", "Green", "Blue"}; | |
AlertDialog.Builder builder = new AlertDialog.Builder(this); | |
builder.setTitle("Pick a color"); | |
builder.setSingleChoiceItems(items, -1, | |
new DialogInterface.OnClickListener() { | |
public void onClick(DialogInterface dialog, int item) { | |
Toast.makeText(getApplicationContext(), items[item], | |
Toast.LENGTH_SHORT).show(); | |
} |
OlderNewer