How do you use the config.xml file to determine which version of an application, a user will download?

I have two APKs for the same application and I implemented the config.XML of lower version number working for all screen sizes.  The config.XML for the higher version number is set up for only the scresns large and extra-large.  Here's the code from the config.xml file.

Version 1

< media screens android: anyDensity = "true" android: Center = 'true '.
Android: smallScreens = "true".
Android: normalScreens = 'true '.
Android: largeScreens = "true".
Android: xlargeScreens = "true" / >

Version 2

< media screens android: anyDensity = "true" android: Center = 'true '.
Android: smallScreens = "false".
Android: normalScreens = "false".
Android: largeScreens = "true".
Android: xlargeScreens = "true" / >

When I try to download the app on Google game, only the top version is available, regardless of the size of the unit.  When I asked Google game why this was not behave as expected, they said that the file manifest for both applications is the same.  Here is the code, they shot in the manifest after having used PhoneGap Build.

< media screens android: anyDensity = "true" android: smallScreens = "true" android: normalScreens = "true" android: largeScreens = "true" android: Center = "true" android: xlargeScreens = "true" / >

Can someone explain why PhoneGap Build is not using the settings I set in the config.xml file?  And how to fix this?

The tag is not a valid tag in the config.xml file. This is probably why you see the same tag in two, as the build service is ignorant.

As to how solve you this problem. Currently, you can not, but the next version of android-cordova will include the ability to add a tag which you will be able to use like this:

Tags: PhoneGap

Similar Questions

  • Invalid application - cannot find the config.xml file archive

    I'm new to webworks development... I created a sample config.xml and index.html in the folder Helloworld and made a Zip file...

    Then using ripple I packed up the app and the. Cod files are generated correctly...

    But I was not able to pack and sign using ripple, if I had the signature keys added to the bin folder of the SDK correctly...

    So I tried bbwp command line argument to achieve the same... But it has ended up with the error "Invalid application archive - cannot find the file config.xml.

    What is the problem that I do with the archieve file?

    How to use eclipse for development for the Webworks 2.3.1.5 sdk?

    My guess is that you have a HelloWorld inside your zip file and the file config.xml and index.html are inside this folder. The config.xml file must be in the root and must reference the index.html file, wherever it is in the zip directory structure.

  • Modify the config.xml file (what is the command to save)?

    Hello

    I use ESXi 4.1. I am connected to the host via SSH and Putty.

    I need to add something in the config.xml file however I can't save changes to it.

    I am connected to/etc/vmware/hostd #vi config.xml

    When I add a line and try to save it is not. How save you changes to a file? I tried Ctrl X, S, Z

    Thank you guys.

    (+)

    : wq means you need to swich mode command by esc. Also take a look at Vi Cheat Sheet

  • Encrypt the password weblogic in the config.xml file

    Hi friends,

    I get the below error. while trying to start the administration server.

    < 17 November 2015 14:18:09 IST > < opinion > < Log Management > < BEA-170019 > < server log file /u01/app/orawls/product/fmw11g/user_projects/domains/ClassicDomain/servers/AdminServer/logs/AdminServer.log is open. All events in the log server-side will be written to this file. >

    < 17 November 2015 14:18:09 IST > < critical > < WebLogicServer > < BEA-000386 > < server subsystem failed. Reason: java.lang.AssertionError: java.lang.reflect.InvocationTargetException

    java.lang.AssertionError: java.lang.reflect.InvocationTargetException

    to weblogic.descriptor.DescriptorManager$ SecurityServiceImpl$ SecurityProxy._invokeServiceMethod (DescriptorManager.java:175)

    to weblogic.descriptor.DescriptorManager$ SecurityServiceImpl$ SecurityProxy.decrypt (DescriptorManager.java:192)

    to weblogic.descriptor.DescriptorManager$ SecurityServiceImpl.decrypt (DescriptorManager.java:114)

    at weblogic.descriptor.internal.AbstractDescriptorBean._decrypt(AbstractDescriptorBean.java:1092)

    at weblogic.management.configuration.SecurityConfigurationMBeanImpl.getCredential(SecurityConfigurationMBeanImpl.java:737)

    Truncated. check the log file full stacktrace

    Caused by: java.lang.reflect.InvocationTargetException

    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)

    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

    at java.lang.reflect.Method.invoke(Method.java:606)

    to weblogic.descriptor.DescriptorManager$ SecurityServiceImpl$ SecurityProxy._invokeServiceMethod (DescriptorManager.java:173)

    Truncated. check the log file full stacktrace

    Caused by: weblogic.security.internal.encryption.EncryptionServiceException

    at weblogic.security.internal.encryption.JSafeEncryptionServiceImpl.decryptBytes(JSafeEncryptionServiceImpl.java:139)

    at weblogic.security.internal.encryption.JSafeEncryptionServiceImpl.decryptString(JSafeEncryptionServiceImpl.java:187)

    at weblogic.security.internal.encryption.ClearOrEncryptedService.decrypt(ClearOrEncryptedService.java:96)

    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)

    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

    Truncated. check the log file full stacktrace

    I searched the support of oracle in this regard. In one mentioned to modify the config.XML and add either encrypted or clear text.

    I don't know how to change the file and that all entries have to be changed. I enclose the config file. Could you please suggest me.

    Kind regards

    Prates

    What doc id you are referring to? If you need to replace the password encrypted with password plain text in the config.xml file, just edit it with a text editor and replace the values starting with {ESA}.

  • backgroundImage to different resolutions in the config.xml file

    each mobile has within the config.xml file and different screen resolutions, we can change the images according to the resolutions like this

    
    

    but in my case, it always uses "StartUpScreen.png".

    what I am doing wrong?

    why it gets correct resolution image?

    I use the Simulator to blackberry 9700 (screen resolution 480 x 360)

    BlackBerry plugin - 2.5.1.2 Webworks... Version

    BlackBerry Webworks SDK plugin - 1.5.1.2. Version

    Version of the OS - 5.0.0.680

    This post is actually tim it would be great IF we had something like that. Unfortunately we do not have

  • Cannot find the config.xml file

    Hi all

    I searched the forum and google my problem with no luck.  I hope someone here can help me.

    On my Windows XP VM, I try to use Packager WebWorks to compile a file to archive.  Whenever I do, I get "archive invalid - cannot find the file config.xml.  Of course, my zip file has a config.xml file.

    While trying to fix it myself, I downloaded the sketchpadStandard.zip of the sample and could only compile without error.  I extracted the file and re-compressed it and got the error "cannot find the config.xml file.  I used the utility of windows XP, I downloaded winzip and used this utility, I used my mac to compress the file.  Whenever * I * do, I get the error.

    Obviously, package manager works, and I'm in the right directory that I'm able to compile the provided sample Archives, but why the hell can not compile the VERY SAME FILES I checked myself?

    Any thoughts much appreciated.

    After several hours of experimentation, I finally load the mac version of the SDK directly on my mac, rather than the version of windows on my virtual Windows machine.  I did the fix here would solve the same problem on a mac and it worked.

  • How do you use the FileChooser.ExtensionFilter in JavaFX?

    Hello world

    How do you use the FileChooser.ExtensionFilter in JavaFX to set the file name extensions and filters of the extension?
    I'm sorry but there are no tutorials covering the "FileChooser" element in JavaFX, I know? Any advice or ideas
    will be greatly appreciated to direct me in the right direction.

    Many thanks in advance!
    import javafx.application.Application;
    import javafx.event.ActionEvent;
    import javafx.event.EventHandler;
    import javafx.scene.Group;
    import javafx.scene.Scene;
    import javafx.scene.control.Button;
    import javafx.stage.Stage;
    import javafx.collections.*;
    import javafx.stage.FileChooser.ExtensionFilter;
    import javafx.stage.*;
    import javafx.scene.*;
    import javafx.scene.layout.Pane;
    import java.io.*;
    
    /**
     *
     * @author Shakir
     */
    public class Filech extends Application {
    
        /**
         * @param args the command line arguments
         */
        public static void main(String[] args) {
            Application.launch(args);
        }
    
        @Override
        public void start(final Stage primaryStage) {
    
            primaryStage.setTitle("Hello World");
            final Group root = new Group();
            Scene scene = new Scene(root, 300, 250);
    
            Button btn = new Button();
            btn.setLayoutX(100);
            btn.setLayoutY(80);
            btn.setText("Get file chooser");
            btn.setOnAction(new EventHandler() {
    
                public void handle(ActionEvent event) {
                    FileChooser choose = new FileChooser();
                    File d = new File(getClass().getResource(".").getFile());
                    choose.setInitialDirectory(d);
                    Stage st2 = new Stage();
    
                    st2.initModality(Modality.APPLICATION_MODAL);
                    javafx.stage.FileChooser.ExtensionFilter filter = new FileChooser.ExtensionFilter("executable", "*.class");
                    st2.initOwner(primaryStage);
                    choose.getExtensionFilters().add(filter);
                    choose.showOpenDialog(st2);
    
                }
            });
            root.getChildren().add(btn);
            primaryStage.setScene(scene);
            primaryStage.show();
    
        }
    }
    
  • How do you use the Exp fundtion on the windows calculator

    How do you use the Exp function in the windows for the following calculator

    Exponential of the negative power of 0.5

    e

    I don't have.
    I couldn't find an e = 2.71828183 key on the windows calculator.
    I used Google's built-in calculator function.

    The windows calculator, you will need to enter:
    2.71828183 [x ^ y] (-0.5) =.
    ||

  • How do you use the creative cloud with using the internet.

    How do you use the creative cloud with using the internet.

    You MUST have an internet connection to download and activate the programs

    After this, you MUST have a connection to the programs check your subscription on the calendar below

    Cloud status check 30-or-99 days https://forums.adobe.com/thread/1549838

  • HOW do you use the INS/PRT SC button to insert the copied data? It does not work! Help!

    I just got a pavilion DV6-7010us... I have always used the INSERT key when I copy data and insert into a message, chat screen, document... this computer has a key of INS/PRT SC.  I can't get the key to insert data into almost anything.   How do you use this key?  or is there another way to insert data that you copied, into something... ???  I'm used to use Shift + Insert key on my old laptop.    Right now, I try to keep in my mind to use the mouse to insert data... but would like to be able to use the key on the laptop keyboard.

    Is there a way to do it?

    Thank you

    Barbara

    You must identify your laptop for each of us to have a clue as to what looks like your keyboard. There are so many models of HP to be precise.

    Remove the battery and look for the label that says p/n. Post this string alphanumeric together here. It is your HP product number. G6 or dv6 and dv7 are all just model numbers.

    You can also do this by using Ctrl + C to copy and Ctrl + V to paste. That's what most people use to copy and paste in most applications and productivity programs.

    Because Windows 7 has the capture tool, I didn't even use the Ins or Prt Scr.

  • How can I use the configuration xml into native c + c++ file / qml

    I want to use a config file xml in my app.but I don't know what path should I place my xml file, and how to read it.how to get the path...

    of course, you can put the XML into your project. But why would you do that?

  • How do you use the JS to open a file dialog box

    If you use this to open a dialog box to select a file:

    File.openDialog ("Select your XML file", "*.xml")

    How you open a dialog box to select a folder.  I think it would be something like

    Folder.openDialog

    but alas, it isn't, and I can't find any reference on how to do this anywhere.  We know?

    Thank you

    I found it after I posted this.  He replied in this thread

    But if you don't get there, it's long and short of it...

    It is not Open.   It's openDlg (intuitive how)

    var myDefault is new folder ("U:/xxx/zzz');.

    myFiles = myDefault.openDlg var ( string, string + model, multiple selection filter quick bollean);

  • How to make an html application in the config.xml file

    not able to config.xml five for my application

    Take a look at the start for a sample config.xml and guide instructions on creating your own file config.xml https://developer.blackberry.com/html5/documentation/working_with_config_xml_file_1866970_11.html

  • How do you get the incremented xml data a statement?

    Hello

    I am importing data using xml and incrementing data that looks like this

    peopleObject.name0

    peopleObject.phone0

    peopleObject.image0

    peopleObject.name1

    peopleObject.phone1

    peopleObject.image1

    And now I'm trying to use this information using a statement but I don't know how I can add the number that is incremented at the end I tried to add a '+ I' like this

    for (var i = 0; i < = peopleTotal; i ++) {}
    var newMC:MovieClip = placeHolder.attachMovie ("peopleMovie", "peopleMovie_" + I, i);
    newMC._x = 100;
    newMC._y = is;
    newMC.peoplename.text = peopleObject.name + i;
    trace (peopleObject.name + i + "name + I")
    newMC.peopleimg = peopleObject.image + i;
    ago += newMC._height;
    }

    So no idea how can I access the data, it's in a variable incremented in a separate for the statement? Let me know if I'm not explaining enough good.

    Thank you

    Randy

    Use array notation:

    peopleObject ['name' + i] = everything which

    ["phone" + i] peopleObject = whateverelse;

    etc.

  • How do you use the step and resume for 10 indesign pages

    Hello

    I have a record for a mailing label. I have successfully used the step and repeat to create 2 columns and 8 rows for a document or a page. How to create 2 columns and 8 rows to say 10 pages with step and repeat? What you have to do with the pages?

    Thanks in advance

    You're simply trying to get additional copies of the same label? You don't want to do several pages to do, just print x pages.

    This looks like the same project of the other day. You really need to be clear about what you're doing: you said you wanted 50 copies of the same label and I told you not to worry about merging data, but maybe what you really meant you wanted pages full of the same label, but many different labels in the file. It IS a project of data merge, but you still would be implemented with stepa and repeat the process to put a series of placeholders in each position of the label, but you do only one page in the merge template. Merge all your records, one record per page, then print as many copies of the file as that required for the number of labels you need.

Maybe you are looking for