Good evening. Applications are written under androyd. In the eclipse, I tried to insert a script in C # that opened the manifest file and rewrote the string. It didn’t seem to work, but most likely due to incorrect parsing.

Now I work at IDEA. Could you tell me how to run the script there before launching the program, and can there be any ready-made developments?

Thank.

    1 answer 1

    If you have the latest version of idea, then gradle is used there. And on it you can do anything - it is a full-fledged language. Moreover, the manifest parameters are already parsed .

    If you use the old version of idea (12), then you will have to work with ant there. Eclipse also works with it, so it is possible that your work will be earned. You can read about it here . But to use c # in android projects for such purposes as it is not by Feng Shui.

    • @Kovadim, here it is a reason to update the idea. I hope when installing, it will not bring down all my settings. Now put and accomplish your goal. Thank. - Emil Sabitov
    • @KoVadim, but do not tell me where in the 12th idea to run the program before launching. I can not understand. Where is the Before Launch field added: make - >> Run external tool? What important fields are there next? - Emil Sabitov
    • one
      You do not confuse the concept of "before running" and "before starting the compilation"? find in your project the build.xml file, this is the file that ant uses to build the project. In us you can add various rules for processing. Here's an interesting post for SO. - KoVadim
    • @KoVadim, thanks for the help, but I did it at night with the same C # script. Everything is working. - Emil Sabitov