Hello all!I was wondering whether it is possible to actually implement new lines of code within a running programme.

For instance, summoning a panel and entering a line of code that modifies the color of a background inside an application, or do you have to sort of "fake" the programming by creating conditions inside the application saying for instance "if the user types XXX (the code in question) execute XXX" therefore making it look like programming but basically anticipating a certain number of possible responses by the user.

Thanks for your help!

EDIT: darn, perhaps I should have posted this in the Java mobile development... but it's a general question for Java programming anyways!

The JVM supports hotswapping of methods for running programs. For example, in Eclipse if you run your program in debug mode then when you change a methods code you will see the change in the program the next time the method is called. Not everything can be hotswapped, I know you can't add or remove methods or modify global variables. I'm also not sure if this can be done on Android as I've not developed for it.

java-gaming.org is not responsible for the content posted by its members, including references to external websites,
and other references that may or may not have a relation with our primarily
gaming and game production oriented community.
inquiries and complaints can be sent via email to the info‑account of the
company managing the website of java‑gaming.org