hi,
Ok so i created a folder in plugins folders. Attached is the screenshot
Also added the following to the cordova_plugins.js
code
{
"file": "plugins/org.apache.cordova.plugin/www/FeatureDetector.js",
"id": "org.apache.cordova.plugin",
"clobbers": [
"plugins.FeatureDetector", "window.featureDetector", "FeatureDetector"
]
}
/code
And in res-config.xml I added the following
code
<feature name="FeatureDetector">
<param name="android-package" value="org.apache.cordova.plugin.FeatureDetector"/>
</feature>
/code
then copied src/android/FeatureDetector.java" TO "src/org/apache/cordova/plugin"
Also changed app settings min sdk to 4.0 and target sdk to 4.1x
Also modified the pom.xml and changed to version 4.1.1.4
code
<groupId>com.google.android</groupId>
<artifactId>android</artifactId>
<version>4.1.1.4</version>
<scope>provided</scope>
</dependency>
/code
I am trying to use a device feature detection plugin. I have shared the App with the support and it is called "DeviceFeatureDetection"
Thanks,
M&M