Android framework. What is it? [closed]

Want to improve this question? Update the question so it focuses on one problem only by editing this post.

Closed 4 years ago .
  1. What does an Android Framework do? What is it's job?
  2. What are these managers - Activity Manager, Location Manager etc? Are they APIs or libraries?
  3. I heard that the definition of a framework is - a set of libraries that say “Don’t call us, we’ll call you.” So can I say that Activity Manager, Location Manager etc are such libraries? Or is it that they are not libraries but APIs (used to access underlying c/c++ libraries) and the actual libraries that do "Don't call us, we'll call you." are hidden from us?
32.7k 26 26 gold badges 94 94 silver badges 140 140 bronze badges asked Jun 3, 2010 at 16:45 213 1 1 gold badge 2 2 silver badges 3 3 bronze badges Isn't this a duplicate of stackoverflow.com/questions/2964318/android-framework ? Commented Jun 3, 2010 at 17:03 Possible duplicate of Android framework Commented Jul 10, 2018 at 13:24

4 Answers 4

  1. The android framework is the set of API's that allow developers to quickly and easily write apps for android phones. It consists of tools for designing UIs like buttons, text fields, image panes, and system tools like intents (for starting other apps/activities or opening files), phone controls, media players, ect. Essentially an android app consists of Activities (programs that the user interacts with), services (programs that run in the background or provide some function to other apps), and broadcast receivers (programs that catch information important to your app). The best way to learn this system will be to go through the Google Tutorials found here
  2. AcitivityManager and LocationManager are examples of classes found in the android sdk (the framework). I do not know of any use for these classes, as I believe they are part of the system. I have never used them, but if you wanted to learn more about them i would look at the Android API
  3. I believe your question is a bit 3 dimensional:

So to answer your question, ActivityManager and LocationManager are neither libraries nor APIs. Rather, they are classes within the Android SDK (which is a library) that are used by either the system, or the developer (if he can find any use for them). Also, everything in android is Java, so you wont find any C/C++ libraries for android

I hope that this answer was helpful for you.