Android Video Streaming Example


//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// public class HelloAndroidActivity extends Activity implements OnClickListener { private static String TAG = “androidEx2”; private Button buttonVideoSample; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); Log.i(TAG, “onCreate”); setContentView(R.layout.main); buttonVideoSample = (Button) findViewById(R.id.buttonVideoSample); buttonVideoSample.setOnClickListener(this); } public void onClick(View v) { if (v.getId() == R.id.buttonVideoSample) { //   http://podcast.20min-tv.ch/podcast/20min/199733.mp4 // HERE SET YOUR VIDEO URI   http://www.youtube.com/v/ZirgAYBcOgo&hl=en&fs=1 […]

Leia mais Android Video Streaming Example

URL Network Connection – Android Java Example


Here is the content of src/MainActivity.java. package com.tutorialspoint.myapplication; import android.app.ProgressDialog; import android.content.Context; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.net.ConnectivityManager; import android.net.NetworkInfo; import android.os.Bundle; import android.os.Handler; import android.os.Message; import android.support.v7.app.ActionBarActivity; import android.view.Menu; import android.view.MenuItem; import android.view.View; import android.widget.Button; import android.widget.EditText; import android.widget.ImageView; import android.widget.TextView; import android.widget.Toast; import java.io.IOException; import java.io.InputStream; import java.net.HttpURLConnection; import java.net.MalformedURLException; import java.net.URL; import […]

Leia mais URL Network Connection – Android Java Example