You are on page 1of 16

MOPROG1

Introductory Concepts

Objectives • Understand the characteristics of mobile devices and how they affect the development of mobile applications • Have an overview of the Android Platform .

Characteristics of Mobile Devices • • • • • • • Small in size Limited memory Limited processing power Low power consumption Robust and reliable Limited connectivity Short wakeup time .

conserve the use of this precious resource • Limited processing power – size. technology and budget • Low power consumption – limited supply from batteries .Mobile Devices • Small in size – mobility and convenience • Limited memory – primary (RAM) and secondary (disk) – affects the writing of programs .

Mobile Devices • Robust and reliable – always carried along – must stand the force of bumps. motion and occasional drops • Limited connectivity – low bandwidth – some are not connected at all – most use wireless connections • Short wakeup time – startup in seconds – most are always on .

– wholly-owned subsidiary of Google Inc. 2005 – Google acquired Android Inc. 2003 – Andy Rubin. – group of 84 technology and mobile companies – innovation in mobile experience for Android • OHA (Open Handset Alliance) .Android • Android. California. Inc. United States – October. Rich Miner • August. – Palo Alto.

Android .

Android • Software stack for mobile device – Operating system – Middleware – Key applications – consists of Java applications running on a Javabased. Honeycomb. and Ice Cream • cheap and easy . Gingerbread. Eclair. object-oriented application framework • Android O.S based on linux kernel • Large Community of Developers writing applications • Each version is developed under a code name based on a dessert item – Cupcake. Froyo. Donut.

PNG. video.Android • Features – Application framework – Dalvik virtual machine – Integrated browser – Optimized graphics – SQLite • enables reuse and replacement of components • optimized for mobile devices • based on the open source WebKit engine • custom 2D graphics library. and still image formats (MPEG4. GIF) . MP3. JPG.264. H. AMR. AAC. • 3D graphics based on the OpenGL ES 1.0 specification • structured data storage – Media support • common audio.

3G. memory and performance profiling.Android • GSM Telephony • Bluetooth. • Camera. and WiFi Bluetooth. GPS. plugin for the Eclipse IDE – hardware dependent – hardware dependent . EDGE. tools for debugging. compass. and Camera. accelerometer • Rich development environment – – – – – hardware dependent device emulator.

Android .

resources. Content providers. Services. Broadcast receivers) .apk) – Sandboxed – Manifest. components (Activities.Android • Application Fundamentals – Java – Android package (.

onPause(). and onDestroy() – applications can contain multiple activities . onResume(). onStop(). onStart(). it is pushed onto the back stack – UI can be built with XML or Java – Lifecycle callback methods • onCreate().Android • Activities – represents a single screen with a user interface – when new activity starts.

Android • Services – perform long running operations in the background – no UI – runs independently of the component that created it – can be bound to by other application components .

Android • Content Providers – store and retrieve data and make it accessible to all applications – only way to share data across applications – data is exposed as a simple table – exposes a public URI that uniquely identifies its dataset .

Android • Broadcast Receivers – responds to system-wide broadcast announcements • Ex: low battery charge – applications can initiate their own broadcasts – no UI but can create bar notifications .