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));
}
}