Back to project page VLC-Simple-Player-Android.
The source code is released under:
MIT License
If you think the Android project VLC-Simple-Player-Android listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.wass08.vlcsimpleplayer; /*from w w w. ja va 2 s .c om*/ import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.view.Menu; import android.view.MenuItem; import android.view.View; import android.widget.EditText; import android.widget.TextView; public class MediaSelector extends Activity { private EditText urlGetter; private TextView buttonStart; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_media_selector); urlGetter = (EditText)findViewById(R.id.url_getter); buttonStart = (TextView)findViewById(R.id.button_start); buttonStart.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { Intent toFullscreen = new Intent(MediaSelector.this, FullscreenVlcPlayer.class); Bundle b = new Bundle(); // Pass the url from the input to the player b.putString("url", urlGetter.getText().toString()); toFullscreen.putExtras(b); //Put your id to your next Intent startActivity(toFullscreen); } }); } }