Code Android Intent - Action_View - Amazing Indonesia

Latest

Thursday 5 January 2012

Code Android Intent - Action_View

When call IntentActionViewwActivity() with action Intent.ACTION_VIEW, the system will start an activity to display the data to the user. ACTION_VIEW is the most common action performed on data -- it is the generic action you can use on a piece of data to get the most reasonable thing to occur.

Screen Shoot Project :

Intent intentkontak = new Intent( Intent.ACTION_VIEW,Uri.parse( "content://contacts/people"));
startActivity(intentkontak);


Intent intentgoogle = new Intent( Intent.ACTION_VIEW,Uri.parse( "http://www.google.com"));
startActivity(intentgoogle);


Intent intentcall = new Intent( Intent.ACTION_VIEW,Uri.parse("tel:/216 555-1234"));
startActivity(intentcall);


Download Project Android IntentActionView.zip

No comments:

Post a Comment