小编use*_*958的帖子

在Android中解析并播放.pls文件

任何人都可以帮我解析如何在android中解析和播放这个.pls文件

 [playlist]
 NumberOfEntries=1
 File1=http://stream.radiosai.net:8002/
Run Code Online (Sandbox Code Playgroud)

android http-live-streaming android-mediaplayer

9
推荐指数
1
解决办法
5849
查看次数

在android中没有调用WebView方法

我的Web视图没有调用它返回警告的javascript函数,如下所示.任何人都可以建议如何摆脱以下警告.

07-30 10:15:44.031: W/webview_proxy(3770): java.lang.Throwable: Warning: A WebView method was called on thread 'WebViewCoreThread'. All WebView methods must be called on the UI thread. Future versions of WebView may not support use on other threads.

以下是我的功能.

public boolean onLongClick(View v){
    System.out.println("dfdsf");
    // Tell the javascript to handle this if not in selection mode
    //if(!this.isInSelectionMode()){
        this.getSettings().setJavaScriptEnabled(true);
        this.getSettings().setJavaScriptCanOpenWindowsAutomatically(true);
        this.getSettings().setPluginsEnabled(true);
        this.loadUrl("javascript:android.selection.longTouch();");
        mScrolling = true;
        //this.setJavaScriptEnabled(true);
    //}


    // Don't let the webview handle it
    return true;
}
Run Code Online (Sandbox Code Playgroud)

methods android webview

7
推荐指数
2
解决办法
1万
查看次数