multiple dependent android projects in eclipse

Posted by lope on Stack Overflow See other posts from Stack Overflow or by lope
Published on 2010-06-14T21:45:24Z Indexed on 2010/06/14 21:52 UTC
Read the original article Hit count: 139

Filed under:

Hi there!

I just started to play with android dev and java+eclipse is pretty new to me. I managed to create simple project and run it on my device. Now I want to create simple game (more of them actually) and I would love to use shared code base for all of them (game loop, initialization, etc..).

Problem is that I have no idea how to correctly do this. I created android project called engine with all basic stuff that I need and made it work on device. Now I tried to create another project in same workspace called mygame. Main class (activity) of mygame is MyGameApp which inherits from EngineApp (main activity of my engine project) which inherits from Activity.

I added engine project into required projects in mygame build path tab in properties. Problem is that when I try to run this project it crashes on ClassNotFoundException trying to find my MyGameApp class.

Any help (or pointer to some articles that explain how this is done) is greatly appreciated. few hours of googling didn't help much :/

© Stack Overflow or respective owner

Related posts about android