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.