sudo add-apt-repository ppa:cwchien/gradle
sudo apt-get update
sudo apt-get install gradle
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?"); | |
builder.setPositiveButton("Yes", new DialogInterface.OnClickListener() { | |
@Override | |
public void onClick(DialogInterface dialogInterface, int i) { | |
dialogInterface.dismiss(); | |
// Do something | |
// ... |
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
Intent openBrowserIntent = new Intent(Intent.ACTION_VIEW); | |
openBrowserIntent.setData(Uri.parse("http://google.com")); | |
startActivity(openBrowserIntent); |
NewerOlder