Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (794)
Games in Android Showcase (234)
games submitted by our members
Games in WIP (864)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Programming inside an application in Android?  (Read 2404 times)
0 Members and 1 Guest are viewing this topic.
Offline Marma

Innocent Bystander

« Posted 2013-03-06 21:58:01 »

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!  Wink

EDIT: darn, perhaps I should have posted this in the Java mobile development... but it's a general question for Java programming anyways!
Offline Z-Man
« Reply #1 - Posted 2013-03-06 23:10:20 »

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.
Offline ra4king

JGO Kernel

Medals: 508
Projects: 3
Exp: 5 years

I'm the King!

« Reply #2 - Posted 2013-03-07 00:13:34 »

Android does not support code hotswapping.

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Cero
« Reply #3 - Posted 2013-03-07 01:16:54 »

I mean if you are clever you are using something like libgdx so it runs on desktop anyway and you can hotswap code with debug eclipse for example

and later try on android... I only upload to android very rarely

Offline ReBirth
« Reply #4 - Posted 2013-03-07 01:41:21 »

I upload it only when reached huge changes, or it is something non testable on desktop like swipe sensitivity, pinching, or android related stuff.

I take desktop version as my android emulator, which is a truly emulator, doesn't waste my 20m just to boot up.

Pages: [1]
  ignore  |  Print  

hadezbladez (3114 views)
2018-11-16 13:46:03

hadezbladez (1126 views)
2018-11-16 13:41:33

hadezbladez (3074 views)
2018-11-16 13:35:35

hadezbladez (615 views)
2018-11-16 13:32:03

EgonOlsen (3902 views)
2018-06-10 19:43:48

EgonOlsen (4373 views)
2018-06-10 19:43:44

EgonOlsen (2606 views)
2018-06-10 19:43:20

DesertCoockie (3427 views)
2018-05-13 18:23:11

nelsongames (3548 views)
2018-04-24 18:15:36

nelsongames (4589 views)
2018-04-24 18:14:32
Java Gaming Resources
by philfrei
2019-05-14 16:15:13

Deployment and Packaging
by philfrei
2019-05-08 15:15:36

Deployment and Packaging
by philfrei
2019-05-08 15:13:34

Deployment and Packaging
by philfrei
2019-02-17 20:25:53

Deployment and Packaging
by mudlee
2018-08-22 18:09:50

Java Gaming Resources
by gouessej
2018-08-22 08:19:41

Deployment and Packaging
by gouessej
2018-08-22 08:04:08

Deployment and Packaging
by gouessej
2018-08-22 08:03:45 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‑
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!