Reputation: 3
I want to know, what kind of code are inside imports/libraries in Android.
I already know that Java or Kotlin code of the Android is compiled to smali and dalvik executable classes, but I am interested about that code which are interfacing (straigthly) with Android os.
Can I then for example create my own Android Application wirh Android Studio which shows an AlertDialog or whatever else with whatever content I want without using the import android.app.AlertDialog;
but with some kind of direct root level android code (some same methods calling everything in Android)?
I look at inside SDK folder of Android Studio and happily found folders like java.lang
... with an .java file at the end, but that .java file was very abstract and did not contain any interesting code, only empty methdods and a lot of comments!
Upvotes: -1
Views: 64
Reputation: 19253
about SDK/Android - its open source, so you can inspect code freely, e.g. in HERE
you can always use middle-button click on mouse (or ctrl + left click) on class name to jump into and read code. but Android framework is changing in time, every app have minSdkVersion
and supports few versions. when inspected class changed in time and you use above way for check out source you will get empty methods file only, as Studio does not know which "version" of this class should be shown - from oldest supported OS version? newest? some middle? same as connected device?
Upvotes: 0