Created
May 11, 2019 09:47
-
-
Save pkavoo/4a0154c215c0a305936675df0362f9fb to your computer and use it in GitHub Desktop.
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
//open calendar method | |
public void openCalendar(View view) | |
{ | |
Intent calendarIntent = new Intent() ; | |
calendarIntent.setClassName("com.android.calendar","com.android.calendar.AgendaActivity"); | |
} | |
//openbrowser method | |
public void openBrowser(View view) | |
{ | |
Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse("http://www.google.com")); | |
startActivity(browserIntent); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment