Add the support for the new SystemInterface of android_npapi, expose

getApplicationDataDirectory to the plugin.
This commit is contained in:
Grace Kloba
2009-08-04 17:52:05 -07:00
parent baa7e3dea3
commit fd055b2d7c
2 changed files with 11 additions and 0 deletions

View File

@@ -185,6 +185,13 @@ final class JWebCoreJavaBridge extends Handler {
return PluginManager.getInstance(null).getPluginDirecoties();
}
/**
* Returns the path of the plugin data directory
*/
private String getPluginSharedDataDirectory() {
return PluginManager.getInstance(null).getPluginSharedDataDirectory();
}
/**
* setSharedTimer
* @param timemillis The relative time when the timer should fire

View File

@@ -154,4 +154,8 @@ public class PluginManager {
}
return directories.toArray(new String[directories.size()]);
}
String getPluginSharedDataDirectory() {
return mContext.getDir("plugins", 0).getPath();
}
}