android;calling back onServiceConnected plural times
<p>i have one activity with Service.
service throws the method to Activity with boundService.</p>

<p>i want Activity to catch onServiceConnected plural times.</p>

<p>because what i want to do is throwing executing result from TimerTask in Service to Activity.</p>

<p>of course, because it's timertask, the result will change and change.</p>

<p>but onServiceConnected will be called only onetime.
how to get result everytime?</p>

<p>my TimerTask is to catch the html and parse</p>

<pre><code>{                   WebView webView = new WebView(this);
                webView.getSettings().setJavaScriptEnabled(true);
                webView.setWebViewClient(new WebViewClinet());
                webView.addJavascriptInterface(new WebViewLogger(), "webViewLogger");
                String Url = (String) map.get("URL");
                webView.loadUrl(Url);
                }   });

            }       }
        class WebViewClinet extends WebViewClient {
            @Override public void onPageFinished(WebView view, String url) {
                view.loadUrl("javascript:window.webViewLogger.log(document.documentElement.outerHTML);");
                }    }


        class WebViewLogger {
            public void log(String str) {//"str" is result of onPageFinished() which is html.
                String result = str.parse();
                         HashMap#putString("A",result)
</code></pre>

<p>and the method which be threw to Activity is </p>

<pre><code>String statusMethod(){
            String status = null;           
            if(true)){
                status = HashMap#getString("A");
            }           
            return status;
        }
</code></pre>

<p>in my knowledge, onServiceConnected will be called only onetime.
so "status" is always same, first result of TimerTask.</p>

<p>please.</p>
