Posts

Showing posts with the label internet

VideoView example to play video from Internet

Image
VideoView example to play video from Internet Example of VideoView to play video from Internet: MainActivity.java package com.blogspot.android_er.androidvideoview; import android.media.MediaPlayer; import android.net.Uri; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import android.widget.Toast; import android.widget.VideoView; public class MainActivity extends AppCompatActivity { VideoView myVideoView; String videoSource = "https://sites.google.com/site/androidexample9/download/RunningClock.mp4"; Uri uriVideoSource; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); myVideoView = (VideoView)findViewById(R.id.vview); prepareVideo(); } private void prepareVideo(){ Toast.makeText(MainActivity.this, videoSource, Toast.LENGTH_LONG).show(); uriVideoSource = Uri.parse(videoSource); myVideoView.setVideoURI(uriVideoSource); myVideoView.setOnCompletionLi...

Using Pentaho Marketplace over a proxy or server w o internet

Image
Using Pentaho Marketplace over a proxy or server w o internet Using the Pentaho Marketplace over a proxy Theres a known issue with the Pentaho marketplace when used on a server that has no internet connection. The issue is that... it doesnt work. This is what you get: Well, since the release of pentaho 5.1, not anymore! There was a code change that allowed this to be possible. What we need is to make sure we define the following java environment variables to the start of pentaho, eg, by editing the start-pentaho.sh or whatever method you use to start it: http.proxyHost : the host name of the proxy server http.proxyPort : the port number, the default value being 80. http.nonProxyHosts :a list of hosts that should be reached directly, bypassing the proxy. This is a list of patterns separated by |. The patterns may start or end with a * for wildcards. Any host matching one of these patterns will be reached through a direct connection instead of through a proxy. For authentication, theres...