In this post we are going to make an example that demonstrate the use of intent, intent filter and startActivity in android. Create a new android application project in eclipse and name it as IntentDemo . I change the activity name as First_Activity and corresponding layout name as first_layout . Ads by Google Place a button on the first_layout.xm l file as shown bellow. <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:paddingBottom="@dimen/activity_vertical_margin" android:paddingLeft="@dimen/activity_horizontal_margin" android:paddingRight="@dimen/activity_horizontal_margin" android:paddingTop="@dimen/activity_vertical_margin" tools:context=".First_Activity" > <Button ...
Computer Programming Video Tutorials