Getting Error In Childbrowser.java
Solution 1:
You are looking at a wrong place.... To get the updated and working copy of childbrowser check here https://github.com/phonegap/phonegap-plugins/tree/65be38cf02466748a3b3e93c2d18cb2c198feb28/Android/ChildBrowser
UPDATE:-
Refer this http://simonmacdonald.blogspot.fi/2012/07/phonegap-android-plugins-sometimes-we.html
You need to modify few things like this
ctx.getContext() replaced with cordova.getContext()
ctx.startActivity() replaced with cordova.getActivity().startActivity()
ctx.getSystemService() replaced with cordova.getActivity().getSystemService()
ctx.getAssets() replaced with cordova.getActivity().getAssets()
ctx.runOnUiThread() replaced with cordova.getActivity().runOnUiThread()
ctx.getApplicationContext() replaced with cordova.getActivity().getApplicationContext()
ctx.getPackageManager() replaced with cordova.getActivity().getPackageManager()
ctx.getSharedPreferences() replaced with cordova.getActivity().getSharedPreferences()
ctx.unregisterActivity() replaced with cordova.getActivity().unregisterActivity()
ctx.getResources() replaced with cordova.getActivity().getResources()
import com.phonegap.api.* replaced with import org.apache.cordova.api.*
Post a Comment for "Getting Error In Childbrowser.java"