0

I want to make dynamic modification of channels-config.xml whenever ip for services changed..I provided a screen to enable user to enter service ips on runtime but I don't tried this on any device. Will this work?

Note: The reason I'm using xml config is the use of Parsley framework...

Any help is appreciated..

Zaur Guliyev
  • 4,254
  • 7
  • 28
  • 44

1 Answers1

0

You can do this via ActionScript. I don't think that's possible though, when the application is bootstrapped with a config, since a new configuration must be set up.

Florian Salihovic
  • 3,921
  • 2
  • 19
  • 26
  • is it possible to rewrite something into config.xml after its packaged into .apk or .app file? – Zaur Guliyev Jun 05 '12 at 09:43
  • 1
    Well, theoretically. But you'd had to restart the application. If you use Parsley, create a class for the service to configure it. Then reconfigure or create new service instances when needed by manipulating the service's configuration object. – Florian Salihovic Jun 05 '12 at 09:55
  • Ok I got you.. There's no problem if it needs to be restarted, do you have any examples or resources how to write into config.xml like that? – Zaur Guliyev Jun 05 '12 at 10:44
  • No sorry, i think i have a solution for the ActionScript example somewhere floating around though. – Florian Salihovic Jun 06 '12 at 05:59