title: Can call Activity from JavascriptInterface in Android?
body: <p>I am new to phonegap and my project, I need to call an activity from
  the javascript in the html page, is it possible?</p>
  
  <pre> <code>  
  
  
      public void capturePhoto() {
              JavascriptInterface.this.runOnUiThread(new Runnable() {
                 @Override
                 public void run() {              
                     try{
                          Intent i = new Intent(JavascriptInterface.this, GetPicture.class);                  
                          startActivity(i);
                     }catch(Exception e){
                         Toast.makeText(mContext, e.getMessage(), Toast.LENGTH_SHORT).show();
                     }
  
                 }
              });
           }
  
  </code>
  </pre>