Create Plugin Tutorial
Source Code :download
Since android has it's own VM, before you can use your exported ".jar" file you need to convert it to android's format (Dalvik VM).
for that you need to perform the following steps:
open the command line/terminal and browse to the following path: Android\android-sdk\platform-tools.
there insert the following command:
dx --dex --keep-classes --output= <path+destination> <path+src>.
dx --dex --keep-classes --output= c:\converted\war.jar c:\myGame\war.jar
when creating a game, make sure to add an xml file named "info.xml" (case sensitive), under "src" dir, with the following
<?xml version="1.0" encoding="UTF-8"?> <Game>
where classPath is the path of the class that extends "Game".
in this example we got a package named war and in it we have the "War" class that extends "Game".
Xml Example :download