You are on page 1of 1

<Button android:id="@+id/SMenu" android:layout_width="65dp" android:layout_height="65dp" android:layout_alignParentRight="true" android:layout_below="@+id/videoView1" android:layout_marginRight="20dp" android:layout_marginTop="50dp" android:background="@drawable/next" /> ______________________________________________________________ public class ThirdActivity extends

Activity { Button btnMenu; VideoView vd; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.third_activity); vd = (VideoView) findViewById(R.id.videoView1); String urlpath = "android.resource://" + getPackageName() + "/" + R.raw. duniakimi; vd.setVideoURI(Uri.parse(urlpath)); vd.start(); btnMenu = (Button)findViewById(R.id.SMenu); btnMenu.setOnClickListener(new View.OnClickListener(){ @Override public void onClick(View arg0) { // TODO Auto-generated method stub Intent start = new Intent("android.intent.action .FOURTHACTIVITY"); startActivity(start); } }); }} __________________________________________________________________ Main Menu: Intent start = new Intent("android.intent.action.SIXTHACTIVITY");