@@ -0,0 +1,1805 @@
+/*%0A * PhoneGap is available under *either* the terms of the modified BSD license *or* the%0A * MIT License (2008). See http://opensource.org/licenses/alphabetical for full text.%0A *%0A */%0A%0Apackage com.manu.videoplayer;%0A%0Aimport android.os.Bundle;%0Aimport android.app.Activity;%0Aimport com.fingent.video.R;%0Aimport com.manu.videoplayer.FakeR;%0Aimport android.widget.VideoView;%0Aimport android.net.Uri; %0Aimport android.widget.TextView;%0Aimport android.view.View;%0Aimport android.view.Window;%0Aimport android.widget.Button;%0Aimport android.view.View.OnClickListener;%0Aimport android.os.Handler;%0Aimport android.widget.LinearLayout;%0A%0Apublic class VideoActivity extends Activity %7B%0A%0A%09private FakeR fakeR;%0A%09%0A%09@Override%0A%09public void onCreate(Bundle savedInstanceState) %7B%0A%09%09super.onCreate(savedInstanceState);%0A%09%09//setContentView(R.layout.activity_new);%0A%09%09super.onCreate(savedInstanceState);%0A%09%09getWindow().requestFeature(Window.FEATURE_ACTION_BAR);%0A%09%09getActionBar().hide();%0A        fakeR = new FakeR(this);%0A        setContentView(fakeR.getId(%22layout%22, %22activity_new%22));%0A%09%09%0A%09%09int btnId = fakeR.getId(%22id%22, %22back_btn%22);%0A%09%09Button backBtn = (Button) findViewById(btnId);%0A%09%09backBtn.setOnClickListener(new OnClickListener() %7B%0A%09%09%09@Override%0A%09%09%09public void onClick(View v) %7B%0A%09%09%09%09finish();%0A%09%09%09%7D%0A%09%09%7D);%0A%09%09%0A%09%09playVideo1();%0A%09%7D%0A%0A    private void playVideo1()%7B%0A%09%09%0A%09%09int desiredWidth = getIntent().getIntExtra(%22WIDTH%22, 300);%0A        int desiredHeight = getIntent().getIntExtra(%22HEIGHT%22, 200);%0A%09%09%0A%09%09int vid = fakeR.getId(%22id%22, %22video1%22);%0A%09%09VideoView videoView = (VideoView) findViewById(vid);%0A%09%09LinearLayout.LayoutParams p = new LinearLayout.LayoutParams(desiredWidth, desiredHeight);%0A%09%09videoView.setLayoutParams(p);%0A%09%09%0A%09%09%0A%09%09videoView.setVideoURI(Uri.parse(%22http://techslides.com/demos/sample-videos/small.mp4%22));%0A%09%09videoView.start();%0A    %7D%0A%0A    %0A%0A%7D%0A

Create VideoActivity.java