We do not have enough information to determine why your program is force closing. Here is a quick overview of how to get the MultiTouchExample working:
1. Create a new Eclipse Project, name it MultiTouchExample for now (same as the actual example).
2. Open your project's workspace folder (ex /Workspace/MultiTouchExample/) and create a directory called "lib". Copy
andengine.jar and
andenginemultitouchextension.jar to your project's
lib folder.
3. Back in Eclipse, refresh your project and expand your /lib folder. Right click on
andengine.jar and
andenginemultitouchextension.jar and add them to the build path (right click > Build Path > Add to Build Path).
4. Now open your new MultiTouchExample.java. You class should not extend
Activity, change this to
BaseGameActivity. Delete the auto generated code so your project should look like this:
Using java Syntax Highlighting
public class MultiTouchExample extends BaseGameActivity {
}
Parsed in 0.030 seconds, using
GeSHi 1.0.8.4
5. You need to create 3 enums which are used for cards in this project, Card.java, Color.java, and Value.java. In Eclipse, right click on your
com.example.MultiTouchExample and click New > Enum. (Do this 3 times, name them Card, Color, and Value).
6. Now all you need to do is add code from the examples. Open /andengineexample/src/org/anddev/andengine/example/MultiTouchExample.java. Copy all of the code from INSIDE the class BaseExample and add this your BaseGameActivity class.
Now just add the code into your enums, copy and paste from the 3 enum files at /andengineexample/src/org/anddev/andengine/example/adt/card/ (Card.java, Color.java, and Value.java) and add the code into your enums, Card, Color, Value.
7. Use CTRL-SHIFT-O in eclipse to Organize Imports and launch!