- Open Eclipse.
- File->New->Android Project
-

- New Android Project window comes up. Select: Create project from existing source; Provide-> Location: (Browse to the current folder having sample examples. In case of Android 1.5, samples are located in Platforms\android-1.5\samples).
- Choose Build Target -> Android 1.5

- Right click on the project -> Snake -> Run as -> Android Application
-

- Check the log window below. It will show the status of the Snake, getting installed on the android emulator.
-

- The application gets loaded on the emulator and the screenshot is as follows:
-

- When you hit 'Up' tab,the game will run.
No comments:
Post a Comment