Date post: | 12-Jan-2017 |
Category: |
Engineering |
Upload: | shashendra-singh |
View: | 37 times |
Download: | 1 times |
Android
Industrial Training Report BY:-Shashendra Singh(7379254841)B.Tech:-IIT Delhi
Contents Introduction History and Versions First Android Application Android Architecture Android Life Cycle User Interface Components Android Core Components Android Data Storage conclusion
What is Android It is a open source software platform and operating
system for mobile devices. It is based on the Linux kernel. Developed by Google Andy Rubin (Father of
Android) and later the Open Handset Alliance (OHA).
Android Allows writing managed code in the Java language.
Android has its own Virtual Machine i.e. DVM DVM(Dalvik Virtual Machine),which is used for executing the android application.
Google purchased the initial Developer of the Software, android incorporated in 2005.
Open Handset Alliance The open Handset Alliance (OHA) is a
business alliance of firm to develop open standard for mobile devices.
Devoted to advancing open standards for mobile devices.
Develop technologies that will significantly lower the cost of developing and distributing mobile devices and services.
Open Handset Alliance(OHA) included Several Companies
ANDROID VERSION
ANDROID VERSION Version Nickname API level Android -1.0 - (API level 1) Android -1.1 - (API level 2) Android -1.5 Cupcake (API level 3) Android -1.6 Donut (API level 4) Android - 2.0 Éclair (API level 5) Android - 2.0.1 Éclair (API level 6) Android - 2.1 Éclair (API level 7) Android - 2.2–2.2.3 Froyo (API level 8) Android -2.3–2.3.2 Gingerbread (API level 9) Android - 2.3.3–2.3.7 Gingerbread (API level 10) Android - 3.0 Honeycomb (API level 11) Android -3.1 Honeycomb (API level 12) Android - 3.2 Honeycomb (API level 13) Android -4.0–4.0.2 Ice Cream Sandwich (API level 14) Android - 4.0.3–4.0.4 Ice Cream Sandwich (API level 15) Android - 4.1 Jelly Bean (API level 16) Android -4.2 Jelly Bean (API level 17) Android -4.3 Jelly Bean (API level 18) Android - 4.4 Kit-Kat (API level 19) Android-4.4W Kit-Kat with wearable extension (API level 20) Android -5.0 .1 Lollipop (API level 21) Android -5.1.1 Lollipop (API level 22) Android -6.0 Marshmallow (API level 23) Android-7.0 Nougat (API level24)
ANDROID ARCHITECTURE The software stack is split into Four Layers::
• The application layer
• The application framework
• The libraries and runtime
• The kernel
Activity
Activity Life Cycle : public class Activity extends ApplicationContext {
protected void onCreate(Bundle savedInstanceState);
protected void onStart();
protected void onRestart();
protected void onResume();
protected void onPause();
protected void onStop();
protected void onDestroy(); }
Intents: An intent is an abstract description of an
operation to be performed. It can be used with startActivity to launch an Activity, broadcastIntent to send it to any interested BroadcastReceiver components, and startService(Intent) or bindService(Intent, ServiceConnection, int) to communicate with a background Service.
Intent Actions ACTION_VIEW ACTION_EDIT ANDROID_INSERT ANDROID_LAUNHER ACTION_DIAL ACTION_CALL ACTION_SEND
Intent in AndroidManifest :
<intent-filter> <action android:name="android.intent.action.GET_CONTENT" /> <category android:name="android.intent.category.DEFAULT" /> <data android:mimeType="vnd.android.cursor.item/vnd.google.note" /> </intent-filter>
Services
BroadCast Receiver A broadcast receiver is a component that
responds to system-wide broadcast announcements. Many broadcasts originate from the system—for example, a broadcast announcing that the screen has turned off, the battery is low, or a picture was captured.
Apps can also initiate broadcasts—for example, to let other apps know that some data has been downloaded to the device and is available for them to use.
Data Storage in Android Android provides several options for us to
save persistent application data. The option we choose depends on our application specific needs, there are some types of DB in Android.Such Are:-
Shared Preferences Internal Storage External Storage SQLite Databases
SQlite DataBase
Prepared By:- Shashendra Singh B.Tech (CSE)