I have developed some applications on android.But now i want to learn game development in Android & iOS with libGDX. I want to only develop for Android & iPhone.I do not want a desktop project. All tutorials tell me to first create desktop project than write code in main project & than run as Android application. But i want to write code in android project using both android & libGDX features. Is this possible ? if yes than how ?
As far as I know the framework, you code your game once, and it automatically creates an executable for all the platforms. So if you only want to make the game for Android and iOS, you only export the executable for these platforms and ignore the other platforms.
The game also isn't made in the 'desktop' project, it is made in the main project. The 'desktop' project is one of the executables.
\$\begingroup\$ can all the APIs and classes and all other features of Android accessible from main project ? \$\endgroup\$– ShrutiJun 13, 2013 at 12:44
When you create an app with gdx-setup, simply select Android and iOS and de-select Desktop and Web options. If you have created them, just ignore them.
gdx-setup-ui.jarand safely delete the
yourproject-desktopfolder. You won't, however, have any extra benefit for doing so. \$\endgroup\$