0% found this document useful (0 votes)
3 views1 page

Android Notes

The document outlines the architecture of Android, detailing its layers from applications to the Linux kernel, and highlights key features such as a user-friendly interface and multi-tasking capabilities. It also includes a program example for navigating from the current location to MSBTE Bandra, showcasing the use of AndroidManifest.xml and MainActivity.java for map functionality. The code demonstrates how to set up a map, add markers, and draw a polyline between two locations.

Uploaded by

riddishsankhe09
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views1 page

Android Notes

The document outlines the architecture of Android, detailing its layers from applications to the Linux kernel, and highlights key features such as a user-friendly interface and multi-tasking capabilities. It also includes a program example for navigating from the current location to MSBTE Bandra, showcasing the use of AndroidManifest.xml and MainActivity.java for map functionality. The code demonstrates how to set up a map, add markers, and draw a polyline between two locations.

Uploaded by

riddishsankhe09
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Android Architecture, Features & Program Notes

Android Architecture

1. Applications Layer: Top layer containing all user apps like Contacts, Email, Games. Apps use
framework and runtime.
2. Application Framework: Provides services like Location, Telephony, Notification Manager.
3. Android Runtime: Executes apps using core libraries and DVM/ART.
4. Platform Libraries: Includes SQLite, OpenGL, Media, WebKit, SSL.
5. Linux Kernel: Manages hardware, memory, power and device drivers.

Android Features

1. User Interface: Simple and touch-friendly UI.


2. Multiple Language Support: Supports many international and Indian languages.
3. Multi-tasking: Runs multiple apps simultaneously.
4. Connectivity: Supports WiFi, Bluetooth, NFC, 4G, etc.
5. App Support: Apps downloaded via Google Play Store or APK.

Program: Direction from Current Location to MSBTE Bandra

[Link]:
<manifest xmlns:android="[Link]
package="[Link]"> <uses-permission
android:name="[Link]"/> <uses-permission
android:name="[Link].ACCESS_FINE_LOCATION"/> <application> <meta-data
android:name="[Link].API_KEY" android:value="@string/google_maps_key"/>
<activity android:name=".MainActivity"> <intent-filter> <action
android:name="[Link]"/> <category
android:name="[Link]"/> </intent-filter> </activity> </application>
</manifest>

[Link]

public class MainActivity extends FragmentActivity implements OnMapReadyCallback { GoogleMap


map; @Override protected void onCreate(Bundle b) { [Link](b);
setContentView([Link].activity_main); MapFragment mf = (MapFragment)
getFragmentManager() .findFragmentById([Link]); [Link](this); } @Override public
void onMapReady(GoogleMap gMap) { map = gMap; LatLng current = new LatLng(19.0760,
72.8777); LatLng msbte = new LatLng(19.021824, 72.8662016); [Link](new
MarkerOptions().position(current).title("Current Location")); [Link](new
MarkerOptions().position(msbte).title("MSBTE")); [Link](new
PolylineOptions().add(current, msbte));
[Link]([Link](current, 12)); } }

You might also like