This document provides an overview of mobile software engineering for Android development. It includes links and instructions for downloading the Android SDK, setting up an eclipse development environment, and using Android emulator and debugging tools. It also summarizes Android app components like activities and layouts, and provides steps for creating a simple "Hello World" Android app with a button to change the displayed text.
6. Constraints
• No support for placing or receiving actual phone calls.
• You can simulate phone calls (placed and received)
through the emulator console, however.
• No support for USB connections
• No support for camera/video capture (input).
• No support for device-attached headphones
• No support for determining connected state
• No support for determining battery charge level and AC
charging state
• No support for determining SD card insert/eject
• No support for Bluetooth
7.
8.
9. Tools
• android - Android SDK manager.
Create/delete/view Android Virtual
Devices and update the SDK with new
platforms/add-ons.
• ddms - Dalvik Debug Monitor Server.
Screen caps, thread/heap info,
process/state info, ..
• emulator - The application responsible for
opening AVDs instances.
• sqlite3 - manage SQLite databases.
10. SDK – Cont.
• # adb - Android Debug Bridge. A
client/server program that manages
the state of an emulated device.
• # aapt - Android Asset Packaging Tool.
• # dx - The converter; converts .class
files to Android bytecode.
22. Get Started – Create Project with
eclipse
• Follow instructions @
– http://developer.android.com/training/basics/firstapp/creating-
project.html
• Build SDK is the platform version against which you
will compile your app. By default, this is set to the
latest version of Android available in your SDK.
• Minimum Required SDK is the lowest version of
Android that your app supports
33. Adding your first button
<Button
android:id="@+id/button1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_above="@+id/textView1"
android:layout_centerHorizontal="true"
android:layout_marginBottom="18dp"
android:text=“Button" />
34. Adding your first button
• res > values > strings
• Add toggle_message to strings
• And in the activity_main.xml file
<Button
android:id="@+id/button1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_above="@+id/textView1"
android:layout_centerHorizontal="true"
android:layout_marginBottom="18dp"
android:text="@string/toggle_message" />