4.Android operatsion tizimi. Android операцион тизими Android – бу мобил қурилмалар учун мўлжалланган турли ҳил иловалар ва хизматларни ўз ичига олган операцион тизим.
7. Android operatsion tizimning boshqa operatsion tizimlardan farqi.
Xususiyati, Android, iOS,
1.Company/Developer,, Google,,Apple Inc.
2.OS family,, Linux OS,, X, UNIX,,
3.Initial release,, September 23, 2008,, July 29, 2007
4.Programmed in,, C, C++, java,, C, C++, Objective-C
5.Source model,, Open source,, Closed, with open source components.
6.Internet browsing,, Google Chrome (or Android Browser on older versions; other browsers are available),, Mobile Safari (Other browsers are available) 7.Interface,, Touch screen, Smartwatch,, Touch screen 8.Messaging,, Google Hangouts,, iMessage
9.Maps,, Google Maps,, Apple Maps
10.App store,, Google Play – 1,000,000+ Apps,,. Apple app store – 1,000,000+ Apps
11.Market share,, 81% of smartphones,, 12.9% of smartphones
12.Available language(s),, 32 Languages,, 34 language
13.Languages Latest stable release,, Android 4.4 Kitkat (October, 2013),, 7.1 (March 10, 2014)
11.Activity yashash sikli.1. onCreate() — activity ишга тушганда биринчи марта чақирилади 2. onStart() — activity натижаси фойдаланувчига кўринганда чақирилади 3. onResume() — activity фойдаланувчи томонидан ишлатилаётганда чақирилади 4. onPause() — жорий activity фаолияти вақтинчалик тўхтатилиб бошқа activity фаоллаштирилганда чақирилади 5. onStop() — activity фойдаланувчига кўринмай қолганида чақирилади 6. onDestroy() — activity тўхтатилган вақтда чақирилади 7. onRestart() — activity иш фаолияти тўхтатаилиб қайта ишга туширилганида чиқарилади Activity яшаш цикли (таснифи) package com.example.helloworld; import android.os.Bundle; import android.app.Activity; import android.util.Log; public class MainActivity extends Activity { String tag = "Lifecycle"; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); } public void onStart() { super.onStart(); Log.d(tag, "In the onStart() event"); } public void onRestart() { super.onRestart(); Log.d(tag, "In the onRestart() event"); } public void onResume() { super.onResume(); Log.d(tag, "In the onResume() event"); } public void onPause() { super.onPause(); Log.d(tag, "In the onPause() event"); } public void onStop(){ super.onStop(); Log.d(tag, "In the onStop() event"); } public void onDestroy(){ super.onDestroy(); Log.d(tag, "In the onDestroy() event"); } }
|