Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (489)
Games in Android Showcase (112)
games submitted by our members
Games in WIP (553)
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 827 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: 345
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  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

TehJavaDev (18 views)
2014-08-28 18:26:30

CopyableCougar4 (26 views)
2014-08-22 19:31:30

atombrot (39 views)
2014-08-19 09:29:53

Tekkerue (36 views)
2014-08-16 06:45:27

Tekkerue (33 views)
2014-08-16 06:22:17

Tekkerue (22 views)
2014-08-16 06:20:21

Tekkerue (33 views)
2014-08-16 06:12:11

Rayexar (70 views)
2014-08-11 02:49:23

BurntPizza (47 views)
2014-08-09 21:09:32

BurntPizza (38 views)
2014-08-08 02:01:56
List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06

List of Learning Resources
by SilverTiger
2014-07-31 11:54:12

HotSpot Options
by dleskov
2014-07-08 01:59:08
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
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!