GoTo: Make Your Own Android App Free
| View Android Articles
Every Android application has the default Android libraries. These default libraries include
the basic building modules for your android app design and functionality. Common library
classes include: Activity, Service, Intent, View, Button, Application, Content provider, Widget.
There are also many libraries that are not included and need to be added individually.
An example of an often used library that is not automatically included would be: maps. For each class you
add you should read the documentation to see if the libraries need to be added also. The library name
is specified in the documentation for the code class you are adding.
To include these libraries in your app, you must make reference to them. This is done in the manifest file.
The manifest must contain a separate, uses-library, element to name each of the libraries.
And read, How To Implement a Support Library
Code to Include in Manifest
This is code for including a library.
Here is where you place the library name.
The name is provided by the documentation for the code class you use.
Here you can choose true or false.
True means the app needs the library you specify in order to function This is the default value.
The system will not allow the application on a device that does not have the library.
False means the app can still function without the specified library, and can function with the library.
Meaning the app can be installed, with or without the library being present on the device.
If you have a newer android platform, then your device has more libraries included for app design and functionalities.
For example, the Android API 21, device version 5 or greater, has the 'material design' functionality included.
For Android APIs and versions less than these there would not be support for 'material design'.
However, by adding the support library, 'appcompat', we can now include 'material design' features and functionality -
into our app.
Libraries for Form Factors
The Android SDK provides libraries for a number of different form factors, such as TV and wearables.
An app can use the appropriate support library to provide functionality across a wide range of platform
versions, and can provide content on external screens, speakers, various other destination devices.
For additional reading
Developer.android.com - Libraries
You May Also Like These Android Articles: How To Scroll A View Android
What is a WebView- Android App Coding
If you Like Our Free Android Articles - Give Us a Social Mention