Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>You are looking at a wrong place.... To get the updated and working copy of childbrowser check here <a href="https://github.com/phonegap/phonegap-plugins/tree/65be38cf02466748a3b3e93c2d18cb2c198feb28/Android/ChildBrowser" rel="nofollow">https://github.com/phonegap/phonegap-plugins/tree/65be38cf02466748a3b3e93c2d18cb2c198feb28/Android/ChildBrowser</a></p> <p><strong>UPDATE:-</strong></p> <p>Refer this <a href="http://simonmacdonald.blogspot.fi/2012/07/phonegap-android-plugins-sometimes-we.html" rel="nofollow">http://simonmacdonald.blogspot.fi/2012/07/phonegap-android-plugins-sometimes-we.html</a></p> <p>You need to modify few things like this</p> <ol> <li><p>ctx.getContext() replaced with cordova.getContext() </p></li> <li><p>ctx.startActivity() replaced with cordova.getActivity().startActivity() </p></li> <li><p>ctx.getSystemService() replaced with cordova.getActivity().getSystemService() </p></li> <li><p>ctx.getAssets() replaced with cordova.getActivity().getAssets() </p></li> <li><p>ctx.runOnUiThread() replaced with cordova.getActivity().runOnUiThread() </p></li> <li><p>ctx.getApplicationContext() replaced with cordova.getActivity().getApplicationContext()</p></li> <li><p>ctx.getPackageManager() replaced with cordova.getActivity().getPackageManager()</p></li> <li><p>ctx.getSharedPreferences() replaced with cordova.getActivity().getSharedPreferences()</p></li> <li><p>ctx.unregisterActivity() replaced with cordova.getActivity().unregisterActivity()</p></li> <li><p>ctx.getResources() replaced with cordova.getActivity().getResources()</p></li> <li><p>import com.phonegap.api.* replaced with import org.apache.cordova.api.*</p></li> </ol>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload