0% found this document useful (0 votes)
7 views2 pages

Android Exam Notes

The document outlines the architecture of Android, detailing its five layers: Applications, Application Framework, Android Runtime, Platform Libraries, and Linux Kernel. It highlights key features such as a user-friendly interface, multi-tasking capabilities, and connectivity options. Additionally, it includes code snippets for Android Manifest.xml and MainActivity.java, demonstrating permissions and map functionalities in an Android application.

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)
7 views2 pages

Android Exam Notes

The document outlines the architecture of Android, detailing its five layers: Applications, Application Framework, Android Runtime, Platform Libraries, and Linux Kernel. It highlights key features such as a user-friendly interface, multi-tasking capabilities, and connectivity options. Additionally, it includes code snippets for Android Manifest.xml and MainActivity.java, demonstrating permissions and map functionalities in an Android application.

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

1. Applications: Top layer with apps like Contacts, Email, Games. Uses framework to run. 2.
Application Framework: Provides services like UI, notifications, location. 3. Android Runtime:
Contains core libraries and DVM to run apps. 4. Platform Libraries: Includes SQLite, OpenGL,
Media, WebKit. 5. Linux Kernel: Manages hardware, memory, drivers.

Features of Android

1. User Interface: Simple and user-friendly. 2. Multiple Language Support: Supports many
languages. 3. Multi-tasking: Run multiple apps at once. 4. Connectivity: WiFi, Bluetooth, NFC, 3G,
4G. 5. Application Support: Apps via Play Store or APK.

Android [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;

protected void onCreate(Bundle b) {


[Link](b);
setContentView([Link].activity_main);

MapFragment mf = (MapFragment) getFragmentManager().findFragmentById([Link]);


[Link](this);
}

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"));
[Link](new MarkerOptions().position(msbte).title("MSBTE"));

[Link](new PolylineOptions().add(current, msbte));

[Link]([Link](current, 12));
}
}

You might also like