Android Development Flow

This diagram shows how Java source code, XML files, and other resources are compiled and packaged into an Android package file. The resulting .apk file is actually a JAR file, you can see its content by typing jar -tvf MyApp.apk.

Please let me know if I got anything wrong!

  • The yellow rounded rectangles are Android SDK tools
  • The orange boxes are files created by the programmer
  • The remaining white boxes are generated by the tools

nonsequitir Says:

Sweet, very useful!

Eric Smith Says:

It’s nice to see a such a clear overview of the whole process.

It’s probably obvious to everyone, but the resources wind up in the apk file, as well as being used to generate R.java. I presume they are added by apkbuilder.

Thank you for showing the big picture of android development !

Sakuraba Says:

Awesome, bro!

Gabriel K. Says:

Nice job! Thanks Erik

Eric Burke Says:

@Gabriel who is “Erik”? :-)

Nice representation. Could you tell more on the significance of dx and apk builder to more details..

Laji Says:

So cool! It’s new! Thanks!

Laji Says:

I don’t know MyService.aidl and aidl tool. And where’s MyService.java?