I want know where to tell android phonegap cordova to allow access to all external url.
I know i have to do it in cordova.xml but am running cordova 3.0 and there is no file
called cordova.xml in my application.
The only xml file i could find is
AndroidManifest.xml
Build.xml
The whitelisting rules are found in res/xml/config.xml and declared with the element .
http://docs.phonegap.com/en/3.0.0/guide_appdev_whitelist_index.md.html#Domain%20Whitelist%20Guide
Related
I am running a phonegap build application version 3.4.0.
Phonegap build has a list of plugins https://build.phonegap.com/plugins where you can find a lot of them for example to send mails, etc.
But i can't see a plugin that retrieve the account information for android devices like the email or name of the owner.
To add a plugin you have a config.xml file in wich you add a line like this:
<gap:plugin name="com.jcjee.plugins.emailcomposer" version="1.4.6" />
My problem is that i found a plugin that seems to be useful: https://github.com/seltzlab/AccountList-Phonegap-Android-Plugin but i cannot find a way to include it on phonegap build compilation.
I can see that you can create a custom public plugin http://docs.build.phonegap.com/en_US/developer_contributing_plugins.md.html but i don't need that, i only need to use one, wich is already created.
Is there any way to achieve this?
Thanks in advance.
I am working on an android app with Phonegap and Jquery Mobile which I will compile with build.phonegap.com.
I first want to know the difference between Manifest.xml and config.xml files, and also whether it is required to add androidManifest.xml when i am uploading the files to build.phonegap.com.
Secondly i will like to know if there will a device problem assuming i add three different Manifest.xml for three difference devices eg, android, ios and blackberry when i upload the files to phonegap build.
Thank you
First Answer: Diff between manifest.xm and config.xml files .... now manifest is where u declare stuff like
1> Package
2>version
3> install location and many more btw i just finish one of my phongap and there is not config in my files though ...
second question .. i dont know about that david ... you can probly go to google !!
First of all manifest.xml is using only for your android application. It defines permissions, services, broadcastresivers ,activities and intents. This file will be using by JVM to register your application on device.
Config.xml is using for cordova library, to define all plugins(interfaces between js and jsvs layer).
Iam trying to integrate Phono Mobile with Phonegap.
I did the following steps:
Add the Phono Plugin
Copy the contents of libs to your PhoneGap libs directory. This includes:
armeab/libg722.so
phonogap.jar
srtplight.jar
Copy 'jquery.phono.js' to your PhoneGap 'www' directory and include it in your app (e.g. index.html)
Added com.phono.android.phonegap.Phono res/xml/plugins.xml
voxeolabs.net,phono.com access origin also added
But Phono object was not being initiated. Please correct me if iam doing anything wrong.
Thanks
Simple try links like
Call me!
I am developing my phonegap application in Eclipse on Android platform and i want to create .APK file from Adobe's account(build.phonegap.com)
So, my problem is that i don't know the difference between Manifest.xml file and config.xml file.
In which file i have to add permissions for my phonegap application(In manifest or in config file)??
There are 2 files - one is AndroidManifest.xml, the other config.xml.
The first file - AndroidManifest.xml - is used to set up information about your application, the main activity (Java class) it uses to actually run, permissions and more-less everything Android-related. This file is only for use on Android devices (not iOS, nor BlackBerry etc.).
config.xml on the other hand is PhoneGap-specific and contains information to set up your PhoneGap project. You set up plugins, allowed URLs that PhoneGap can access and few other settings here.
How does the Android market know our minimum SDK versions and permissions?
The thing that I guess is, their server opens APK file and parse manifest.xml file. Then will find these two elements. Am I right?
I changed the extension of TestProject.apk to TestProject.zip then I extract it. I found manifest.xml and tried to open it but i was not successful. (in Windows, notepad and wordpad couldn't open it but I saw An invalid character was found in text content. Error processing resource 'file:///C:/Users/Inf/AppData/Local/Temp/Temp...' when I opened it with IE).
I want to know, If I have an APK file can I modify it's manifest file directly or after compiling manifest will be encoded?