I was able to succesfully build an andoid APK from a simple SMS project, that doesn't use PhoneGap/Cordova plugins
Now I have an application that is using file access (see http://forums.smartm...106-filewriter/) that I also want to deploy using phonegap/cordova. Cordova has an matching plugin called "cordova-plugin-file".
My config.xml file is:
<?xml version="1.0" encoding="UTF-8" ?> <widget xmlns = "http://www.w3.org/ns/widgets" xmlns:gap = "http://phonegap.com/ns/1.0" xmlns:android = "http://schemas.android.com/apk/res/android" id = "de.sycon.MyPGTest" versionCode = "10" version = "0.0.1" > <!-- versionCode is optional and Android only --> <name>MyPGTest</name> <description> TEST PhoneGapAPI - File. </description> <author email="firstname.lastname@example.org"> Peter MM </author> <content src="index.html" /> <plugin name="cordova-plugin-file" /> <feature name="http://api.phonegap.com/1.0/device" /> </widget>
I’ve include the line:
to my project. PhoneGap build service accepts my project and builds an android APK successfully. However, if I try to install/run the app on an android device, the app crashes without further notice
Whats to do? Are there any example available showing how to use PhpneGap/Cordova PlugIn?