Yes you can do it.
All you need to create a method , say initRoboVM() , will be called by your code when you want to initialize libgdx. You will need to go the way to the application, which you can hard-code during testing.
initRoboVM() will need some changes, namely: it should not call your main Java application method, well, at least, what works well, libraries should not do IMO. Also should not be called rvmShutdown.
You can get more information from here.
Thank:)
Syeda Zunairah Dec 22 '14 at 10:44 2014-12-22 10:44
source share