question

JB avatar image
JB asked

Invoke activity to view personal videos

How can I invoke activity for displaying the personal videos? Also, what data needs to be passed to it. Thanks in advance
fire tablet
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

Dixith@Amazon avatar image
Dixith@Amazon answered
Hi, You can invoke the activity for displaying videos in below ways. 1.)If you actually want a full-blown web browser, then you probably want to invoke the Browser application with a URL. Uri uri = Uri.parse(" http://www.example.com"); Intent intent = new Intent(Intent.ACTION_VIEW, uri); startActivity(intent); 2.)To provide a web view in your activity, set the entire Activity window as a WebView during onCreate(): WebView webview = new WebView(this); setContentView(webview); Please follow the below link for more information. http://developer.android.com/reference/android/webkit/WebView.html
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.