Android Open Source - Android-VideoView Main Activity






From Project

Back to project page Android-VideoView.

License

The source code is released under:

GNU General Public License

If you think the Android project Android-VideoView listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.ai.videoview;
//  w ww . ja va  2s  . com
import com.ai.videoview.widget.VideoView;

import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;

public class MainActivity extends Activity {
  
  VideoView mVideoView;

  @Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_main);
    
    mVideoView = (VideoView)findViewById(R.id.video_view);
    
    
  }

  @Override
  public boolean onCreateOptionsMenu(Menu menu) {
    // Inflate the menu; this adds items to the action bar if it is present.
    getMenuInflater().inflate(R.menu.main, menu);
    return true;
  }
  
  
  
  
  

}




Java Source Code List

com.ai.videoview.MainActivity.java
com.ai.videoview.widget.VideoView.java