2011-07-28 14 views

答えて

1

を書いてあなたが最も可能性の高いリンクが埋め込まれたビデオのハイパーリンクで指さWebViewを使用します。次の線に沿って

何か:次に

<LinearLayout ... > 
    ... my content 
    <WebView android:id="@+id/webView1" ... > 
     ... 
    </WebView> 
</LinearLayout> 

(主にWebViewのドキュメントからの)コードに次のフックを使用します。

WebView webview = (WebView) activity.getViewById(R.id.webView1); 

// Simplest usage: note that an exception will NOT be thrown 
// if there is an error loading this page (see below). 
webview.loadUrl("http://slashdot.org/"); 

// OR, you can also load from an HTML string: 
String summary = "<html><body>You scored <b>192</b> points.</body></html>"; 
webview.loadData(summary, "text/html", "utf-8"); 
// ... although note that there are restrictions on what this HTML can do. 
// See the JavaDocs for loadData() and loadDataWithBaseURL() for more info. 

<uses-permission android:name="android.permission.INTERNET" /> 
を忘れてはいけませんマニフェストの

関連する問題