title: how to call javascript function from android using phonegap plugin
body: <p>This is my index.html   </p>
  
  <pre><code>&lt;!DOCTYPE HTML&gt;
  &lt;html&gt;
    &lt;head&gt;
      &lt;title&gt;PhoneGap&lt;/title&gt;
      &lt;script type="text/javascript" charset="utf-8" src="cordova-1.7.0rc1.js"&gt;&lt;/script&gt;      
      &lt;script type="text/javascript" charset="utf-8"&gt;
  
      function call(){
        console.log("ANDROID");
      }
      &lt;/script&gt;
  
  &lt;/head&gt;
  &lt;body &gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>This is my receiver class </p>
  
  <pre><code>package com.example.jsfrmjv;
  import org.apache.cordova.DroidGap;
  import android.content.BroadcastReceiver;
  import android.content.Context;
  import android.content.Intent;
  import android.util.Log;
  
  public class BootReciver extends BroadcastReceiver {
  Context ctx;
  @Override
  public void onReceive(Context context, Intent intent) {
      // TODO Auto-generated method stub
      System.out.println("BBBBOOOOOOOOOOTTTTTTT COMPLETED");
      Log.d("ALARM STRIKE", "Reboot completed");
  
      //Pluginjava pl = new Pluginjava();
          //((DroidGap) this.ctx).sendJavascript("javascript:call()");                
  }   
  }
  </code></pre>
  
  <p>So, Whenever i restart my phone , this receiver should call the call() method in javascript in index.html. Using Phonegap plugin , i m able to call the java method from index.html.But in this case , i need to call a method in javascript from this receiver class. Thank you for your future help. Please help to resolve this issue.This is urgent guys. </p>