This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private void invokePlay( Boolean loop ) | |
{ | |
Boolean playing = ( mp.isLooping() || mp.isPlaying() ); | |
if ( playing ) | |
{ | |
mp.pause(); | |
mp.setLooping(loop); | |
mp.seekTo(0); | |
mp.start(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private void setUpWebView() | |
{ | |
mWebView = new WebView(getContext()); | |
mWebView.setVerticalScrollBarEnabled(false); | |
mWebView.setHorizontalScrollBarEnabled(false); | |
mWebView.setWebViewClient(new FbDialog.FbWebViewClient()); | |
mWebView.getSettings().setJavaScriptEnabled(true); | |
mWebView.loadUrl(mUrl); | |
mWebView.setLayoutParams(FILL); | |
mContent.addView(mWebView); |
NewerOlder