I am developing one application in html,css,javascript in phonegap. in that application i need a flash plugin coding for javascript to enable audio/video for my application
I have tried this and it is working perfectly fine in my android app. I have embed flash site inside cordova app.
public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
super.init();
super.appView.getSettings().setPluginState(PluginState.ON);
super.loadUrl("http://bezalelgreenarts.com/");//flash based site
}
You would have to override the onCreate method in your Java class that extends DroidGap and put something like this in there:
WebSettings settings = appView.getSettings();
settings.setPluginState(PluginState.ON); // Turn Flash plugin on
Not exactly sure if this can be done in your class that extends DroidGap but it can definitely be done if you edit the DroidGap.java source!
Check out this link for details:
http://groups.google.com/group/phonegap/browse_thread/thread/b37c59f2ac532fe3/d5121817269e1ae1?lnk=gst&q=flash#d5121817269e1ae1