|
I have to edit the main.xml file of a program I'm working on (it's part of an exercise from an android book), but there are two different main.xml files in the Eclipse navigator. They are both respectively located in the "menu" and "layout" sub-folders. I'm not sure which one to modify, or if I should modify both. Here is the code I need to insert:code:
(menu/main.xml) code:
code:
|
# ¿ Jul 22, 2012 05:04 |
|
|
# ¿ May 2, 2024 19:20 |
|
I've been assigned the following program for my android development class: Ninja Game I can't figure out how to successfully import the AndEngine.java file into my project. Specifically, i'm stuck on the step where we need to create a "SimpleGame" class by extending the "BaseGameActivity" class from AndEngine. My eclipse (I'm using Juno) doesn't recognize a BaseGameActivity class to extend from.
|
# ¿ Aug 3, 2012 21:29 |
|
Edit: I need to keep fewer forums windows open at the same time...
Harold Ramis Drugs fucked around with this message at 04:40 on Aug 4, 2012 |
# ¿ Aug 4, 2012 04:34 |
|
I'm trying to use the AndEngine.java library for use in a school project, but I don't think I'm correctly adding it to the build path. There are some superclasses in the library that I'm supposed to extend into subclasses for the purposes of the game, but Eclipse is just not recognizing the library at all. Here's what I'm doing: 1.) Create a new folder in this project's subfolder called "libs" 2.) move andengine.java to that subfolder 3.) right click on it and select Build --> Add to build path From here, the AndEngine library appears under the "Referenced Libraries" subgroup (It's the only thing in there), and I can open up the AndEngine library to find all the superclasses I'm supposed to be extending. The IDE just doesn't recognize any of them when I try to call them in my code. Edit: I actually fixed it by adding a specific import statement for one of the classes I needed. code:
code:
However, is there any way to make the IDE do this for me? It did not recognize anything from the imported library until I specifically typed out that import statement by hand. None of the subclasses/methods appear in the intellisense Harold Ramis Drugs fucked around with this message at 23:08 on Aug 4, 2012 |
# ¿ Aug 4, 2012 22:59 |
|
Here's a video version of my problem: http://www.andengine.org/blog/tag/tutorial/ I am able to follow the video up to about 1:50, when he changes the name of the extended class from "Activity" to "BaseGameActivity". He is actually able to do it with intellisense, and eclipse automatically added the correct import statement to the top. It won't do this for me. The andengine jar file is sitting in my referenced libraries tab for this project. The IDE doesn't seem to recognize anything that's in it, including the above BaseGameActivity statement. (The correct import option selected in the video isn't even available to me). mmm11105 posted:That's mostly how java works, but you should be able to import something like This doesn't work. However, I forgot to note last time that the AndEngine.jar expands into a list of about ~100 different packages, each one with the objects I need inside. I was thinking the above import statement isn't working because the class files needed are contained within subdivisions of that directory. Is there a more inclusive way to use the import statement to import all the classes from all the sub-directories of a jar? Edit: I'm now considering that this might be a symptom of the new release of eclipse (Juno). All of our course materials were prepared for Indigo, so I'll revert to that version and see Harold Ramis Drugs fucked around with this message at 01:20 on Aug 5, 2012 |
# ¿ Aug 5, 2012 01:01 |