Hi, I've been told posting general questions is not a good idea, but I've had some luck so I'll try again. SInce this is a general question, general answers are fine.
I'm working on an idea for a game and was wondering if it's possible in Android. It's basically an ad-hoc game so that 2 (or more) people with android devices could play even if only 1 person has the app. This game would involve sharing both data and code. I think the data sharing is possible. What I think may be difficult is the sharing of code. I've read some postings asking why one would want to share code, so I'll answer that before you ask. The main reason is that the each player of this game actually would write code (albeit often simple code) and transmit it to the device hosting the game. I could develop my own language and transmit the instructions that way as data, but it seems better to transmit the Java bytecode that would run on the phone since I would include library functions they could call to perform common actions. For example a user might write this upon entering a virtual room and spotting an enemy: while (enemy.isalive()) { swing(weapon); duck(); } if (health()<0.2) { drink(potion); } Also, having lived in areas where there is poor phone service I know that being able to transmit directly to the person sitting next to you in the car or while camping in nowhereland would be a good feature regardless. So even if I decide to transmit the user written code as data, getting the original app from the web might not be reasonable in some cases. If transmitting code isn't reasonable, I still think the app will work, it would just cause me to write it differently. Summary: Is it reasonable/possible to directly share user written code? Is it reasonable/possible to directly transmit an app directly from one device to another? What options exist for transmitting data and/or code? If transmitting Java bytecode isn't reasonable, how does one go about directly transmitting data to another phone? In this game, one device would host the code written by all players while the results of running the code would be updated on all devices (if that's helpful). So really only one person need have the total app that's purchased. Everyone else could have a free version that didn't host the program's execution but allowed for writing instructions, transmitting to the host and reading back the results as it happens. I would only expect you to point me in a reasonable direction and/or post a link to the info that will answer these questions, even if only partially. So while I appreciate details, don't go nuts unless you like that sort of thing. Thanks in advance. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~----------~----~----~----~------~----~------~--~---