0
Marc Lester Tan+ http://gplus.to/marctant @mharkusin http://sg.linkedin.com/in/marclestertan
Exploring Android                                    A GTUG-PH Singapore Chapter EventMarc Lester Tan+ http://gplus.to/mar...
What is Android?
What is Android?Application framework
What is Android?Application frameworkDalvik VM
What is Android?Application frameworkDalvik VMIntegrated browser based on WebKit
What is Android?Application frameworkDalvik VMIntegrated browser based on WebKitOptimized Graphics (skia for 2D and OpenGL...
What is Android?Application frameworkDalvik VMIntegrated browser based on WebKitOptimized Graphics (skia for 2D and OpenGL...
What is Android?Application frameworkDalvik VMIntegrated browser based on WebKitOptimized Graphics (skia for 2D and OpenGL...
What is Android?Application frameworkDalvik VMIntegrated browser based on WebKitOptimized Graphics (skia for 2D and OpenGL...
What is Android?
What is Android?GSM Telephony
What is Android?GSM TelephonyBluetooth, EDGE, 3G and WIFI
What is Android?GSM TelephonyBluetooth, EDGE, 3G and WIFICamera, GPS, compass and accelerometer
What is Android?GSM TelephonyBluetooth, EDGE, 3G and WIFICamera, GPS, compass and accelerometerRich Development Environment
Why Android?• Statistics as of November 2011• 200 million Android activations!• Google Music Event (11/16/11)• AppBrain Ma...
Why Android?                       200 million devices worldwide• Statistics as of November 2011• 200 million Android acti...
Why Android?                       200 million devices worldwide                       6 billion downloads in Android Mark...
Why Android?                       200 million devices worldwide                       6 billion downloads in Android Mark...
Why Android?                       200 million devices worldwide                       6 billion downloads in Android Mark...
Why Android?                       200 million devices worldwide                       6 billion downloads in Android Mark...
Top Mobile OEMs (US)                                                                                                 July ...
Top Smartphone Platforms                                                                                                 J...
Your First Android App
Your First Android App
Requirements
RequirementsJava SE 6
RequirementsJava SE 6Android SDK
RequirementsJava SE 6Android SDKEclipse Indigo or Maven 3.0
RequirementsJava SE 6Android SDKEclipse Indigo or Maven 3.0Android-Maven-Plugin if you want to use Maven
RequirementsJava SE 6Android SDKEclipse Indigo or Maven 3.0Android-Maven-Plugin if you want to use MavenADT plugin if you ...
Eclipse ADT Demo
Emulator
EmulatorMimics most of the hardwareand software features of amobile device
EmulatorMimics most of the hardwareand software features of amobile deviceCan simulate applicationinterrupts such as incom...
EmulatorMimics most of the hardwareand software features of amobile deviceCan simulate applicationinterrupts such as incom...
Emulator Limitations
Emulator LimitationsPlacing or receiving phone calls
Emulator LimitationsPlacing or receiving phone callsUSB connections
Emulator LimitationsPlacing or receiving phone callsUSB connectionsCamera / Video Capture (input)
Emulator LimitationsPlacing or receiving phone callsUSB connectionsCamera / Video Capture (input)Determining Connected State
Emulator LimitationsPlacing or receiving phone callsUSB connectionsCamera / Video Capture (input)Determining Connected Sta...
Emulator LimitationsPlacing or receiving phone callsUSB connectionsCamera / Video Capture (input)Determining Connected Sta...
Emulator LimitationsPlacing or receiving phone callsUSB connectionsCamera / Video Capture (input)Determining Connected Sta...
Emulator LimitationsPlacing or receiving phone callsUSB connectionsCamera / Video Capture (input)Determining Connected Sta...
Application structure
Application structure/src/ - location for all your java files
Application structure/src/ - location for all your java files/gen/ - autogenerated file R.java
Application structure/src/ - location for all your java files/gen/ - autogenerated file R.java/assets/ - fonts, audio files a...
Application structure/src/ - location for all your java files/gen/ - autogenerated file R.java/assets/ - fonts, audio files a...
Application structure/src/ - location for all your java files/gen/ - autogenerated file R.java/assets/ - fonts, audio files a...
Application structure/src/ - location for all your java files/gen/ - autogenerated file R.java/assets/ - fonts, audio files a...
Application structure/src/ - location for all your java files/gen/ - autogenerated file R.java/assets/ - fonts, audio files a...
AndroidManifest.xml<?xml version="1.0" encoding="utf-8"?><manifest xmlns:android="http://schemas.android.com/apk/res/andro...
AndroidManifest.xml<?xml version="1.0" encoding="utf-8"?><manifest xmlns:android="http://schemas.android.com/apk/res/andro...
AndroidManifest.xml<?xml version="1.0" encoding="utf-8"?><manifest xmlns:android="http://schemas.android.com/apk/res/andro...
AndroidManifest.xml<?xml version="1.0" encoding="utf-8"?><manifest xmlns:android="http://schemas.android.com/apk/res/andro...
AndroidManifest.xml<?xml version="1.0" encoding="utf-8"?><manifest xmlns:android="http://schemas.android.com/apk/res/andro...
AndroidManifest.xml<?xml version="1.0" encoding="utf-8"?><manifest xmlns:android="http://schemas.android.com/apk/res/andro...
AndroidManifest.xml<?xml version="1.0" encoding="utf-8"?><manifest xmlns:android="http://schemas.android.com/apk/res/andro...
AndroidManifest.xml<?xml version="1.0" encoding="utf-8"?><manifest xmlns:android="http://schemas.android.com/apk/res/andro...
AndroidManifest.xml<?xml version="1.0" encoding="utf-8"?><manifest xmlns:android="http://schemas.android.com/apk/res/andro...
Activitypackage com.mlst.hellogtug;import android.app.Activity;import android.os.Bundle;public class Main extends Activity...
Activitypackage com.mlst.hellogtug;import android.app.Activity;import android.os.Bundle;public class Main extends Activity...
Activitypackage com.mlst.hellogtug;import android.app.Activity;import android.os.Bundle;public class Main extends Activity...
Activitypackage com.mlst.hellogtug;import android.app.Activity;import android.os.Bundle;public class Main extends Activity...
XML-Based Layout (main.xml)<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/a...
XML-Based Layout (main.xml)<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/a...
XML-Based Layout (main.xml)<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/a...
XML-Based Layout (main.xml)<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/a...
XML-Based Layout (main.xml)<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/a...
XML-Based Layout (main.xml)<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/a...
XML-Based Layout (main.xml)<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/a...
XML-Based Layout (main.xml)<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/a...
strings.xml<?xml version="1.0" encoding="utf-8"?><resources>    <string name="hello">Hello World,Main!</string>    <string...
Running your application
Running your application1. Launch the emulator
Running your application1. Launch the emulator2. Install the application using ADB or Android Debug  Bridge (adb install a...
Running your application1. Launch the emulator2. Install the application using ADB or Android Debug  Bridge (adb install a...
Running your application1. Launch the emulator2. Install the application using ADB or Android Debug  Bridge (adb install a...
Debugging your AppWindow > Open Perspective > DDMSSelect the application to debug in Devices sectionClick the green bug ic...
Questions
Upcoming SlideShare
Loading in...5
×

Android sessions gtug ph singapore

909

Published on

Published in: Technology, Business
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
909
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
13
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • Transcript of "Android sessions gtug ph singapore"

    1. 1. Marc Lester Tan+ http://gplus.to/marctant @mharkusin http://sg.linkedin.com/in/marclestertan
    2. 2. Exploring Android A GTUG-PH Singapore Chapter EventMarc Lester Tan+ http://gplus.to/marctant @mharkusin http://sg.linkedin.com/in/marclestertan
    3. 3. What is Android?
    4. 4. What is Android?Application framework
    5. 5. What is Android?Application frameworkDalvik VM
    6. 6. What is Android?Application frameworkDalvik VMIntegrated browser based on WebKit
    7. 7. What is Android?Application frameworkDalvik VMIntegrated browser based on WebKitOptimized Graphics (skia for 2D and OpenGL ES for3D)
    8. 8. What is Android?Application frameworkDalvik VMIntegrated browser based on WebKitOptimized Graphics (skia for 2D and OpenGL ES for3D)SQLite
    9. 9. What is Android?Application frameworkDalvik VMIntegrated browser based on WebKitOptimized Graphics (skia for 2D and OpenGL ES for3D)SQLiteMedia Support
    10. 10. What is Android?Application frameworkDalvik VMIntegrated browser based on WebKitOptimized Graphics (skia for 2D and OpenGL ES for3D)SQLiteMedia Support
    11. 11. What is Android?
    12. 12. What is Android?GSM Telephony
    13. 13. What is Android?GSM TelephonyBluetooth, EDGE, 3G and WIFI
    14. 14. What is Android?GSM TelephonyBluetooth, EDGE, 3G and WIFICamera, GPS, compass and accelerometer
    15. 15. What is Android?GSM TelephonyBluetooth, EDGE, 3G and WIFICamera, GPS, compass and accelerometerRich Development Environment
    16. 16. Why Android?• Statistics as of November 2011• 200 million Android activations!• Google Music Event (11/16/11)• AppBrain Market Stats• Google Phones List
    17. 17. Why Android? 200 million devices worldwide• Statistics as of November 2011• 200 million Android activations!• Google Music Event (11/16/11)• AppBrain Market Stats• Google Phones List
    18. 18. Why Android? 200 million devices worldwide 6 billion downloads in Android Market• Statistics as of November 2011• 200 million Android activations!• Google Music Event (11/16/11)• AppBrain Market Stats• Google Phones List
    19. 19. Why Android? 200 million devices worldwide 6 billion downloads in Android Market 550,000 activations per day• Statistics as of November 2011• 200 million Android activations!• Google Music Event (11/16/11)• AppBrain Market Stats• Google Phones List
    20. 20. Why Android? 200 million devices worldwide 6 billion downloads in Android Market 550,000 activations per day 329,846 apps in the Android Market• Statistics as of November 2011• 200 million Android activations!• Google Music Event (11/16/11)• AppBrain Market Stats• Google Phones List
    21. 21. Why Android? 200 million devices worldwide 6 billion downloads in Android Market 550,000 activations per day 329,846 apps in the Android Market 171 devices from 17 manufacturers• Statistics as of November 2011• 200 million Android activations!• Google Music Event (11/16/11)• AppBrain Market Stats• Google Phones List
    22. 22. Top Mobile OEMs (US) July 2011 Samsung 25.5% LG 20.9% Motorola 14.1% Apple 9.5% RIM 7.6%http://www.comscore.com/Press_Events/Press_Releases/2011/8/comScore_Reports_July_2011_U.S._Mobile_Subscriber_Market_Share
    23. 23. Top Smartphone Platforms July 2011 Google 41.8% Apple 27.0% RIM 21.7% Microsoft 5.7% Symbian 1.9%http://www.comscore.com/Press_Events/Press_Releases/2011/8/comScore_Reports_July_2011_U.S._Mobile_Subscriber_Market_Share
    24. 24. Your First Android App
    25. 25. Your First Android App
    26. 26. Requirements
    27. 27. RequirementsJava SE 6
    28. 28. RequirementsJava SE 6Android SDK
    29. 29. RequirementsJava SE 6Android SDKEclipse Indigo or Maven 3.0
    30. 30. RequirementsJava SE 6Android SDKEclipse Indigo or Maven 3.0Android-Maven-Plugin if you want to use Maven
    31. 31. RequirementsJava SE 6Android SDKEclipse Indigo or Maven 3.0Android-Maven-Plugin if you want to use MavenADT plugin if you want to use Eclipse
    32. 32. Eclipse ADT Demo
    33. 33. Emulator
    34. 34. EmulatorMimics most of the hardwareand software features of amobile device
    35. 35. EmulatorMimics most of the hardwareand software features of amobile deviceCan simulate applicationinterrupts such as incomingSMS or phone calls
    36. 36. EmulatorMimics most of the hardwareand software features of amobile deviceCan simulate applicationinterrupts such as incomingSMS or phone callsSimulate GPS location fix
    37. 37. Emulator Limitations
    38. 38. Emulator LimitationsPlacing or receiving phone calls
    39. 39. Emulator LimitationsPlacing or receiving phone callsUSB connections
    40. 40. Emulator LimitationsPlacing or receiving phone callsUSB connectionsCamera / Video Capture (input)
    41. 41. Emulator LimitationsPlacing or receiving phone callsUSB connectionsCamera / Video Capture (input)Determining Connected State
    42. 42. Emulator LimitationsPlacing or receiving phone callsUSB connectionsCamera / Video Capture (input)Determining Connected StateDetermining Battery charge level and ACcharging state
    43. 43. Emulator LimitationsPlacing or receiving phone callsUSB connectionsCamera / Video Capture (input)Determining Connected StateDetermining Battery charge level and ACcharging stateUnable to listen for SD Card insert/eject
    44. 44. Emulator LimitationsPlacing or receiving phone callsUSB connectionsCamera / Video Capture (input)Determining Connected StateDetermining Battery charge level and ACcharging stateUnable to listen for SD Card insert/ejectBluetooth
    45. 45. Emulator LimitationsPlacing or receiving phone callsUSB connectionsCamera / Video Capture (input)Determining Connected StateDetermining Battery charge level and ACcharging stateUnable to listen for SD Card insert/ejectBluetoothAccelerometer
    46. 46. Application structure
    47. 47. Application structure/src/ - location for all your java files
    48. 48. Application structure/src/ - location for all your java files/gen/ - autogenerated file R.java
    49. 49. Application structure/src/ - location for all your java files/gen/ - autogenerated file R.java/assets/ - fonts, audio files and other compressed files
    50. 50. Application structure/src/ - location for all your java files/gen/ - autogenerated file R.java/assets/ - fonts, audio files and other compressed files/bin/ - target directory to store the dex file and the APK
    51. 51. Application structure/src/ - location for all your java files/gen/ - autogenerated file R.java/assets/ - fonts, audio files and other compressed files/bin/ - target directory to store the dex file and the APK/res/ - drawables, layouts and strings
    52. 52. Application structure/src/ - location for all your java files/gen/ - autogenerated file R.java/assets/ - fonts, audio files and other compressed files/bin/ - target directory to store the dex file and the APK/res/ - drawables, layouts and stringsAndroidManifest.xml - tells a lot of things about yourapplication
    53. 53. Application structure/src/ - location for all your java files/gen/ - autogenerated file R.java/assets/ - fonts, audio files and other compressed files/bin/ - target directory to store the dex file and the APK/res/ - drawables, layouts and stringsAndroidManifest.xml - tells a lot of things about yourapplicationproguard.cfg - configuration file for source codeobfuscation
    54. 54. AndroidManifest.xml<?xml version="1.0" encoding="utf-8"?><manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.mlst.hellogtug" android:versionCode="1" android:versionName="1.0" > <uses-sdk android:minSdkVersion="10" /> <application android:icon="@drawable/ic_launcher" android:label="@string/app_name" > <activity android:label="@string/app_name" android:name=".Main" > <intent-filter > <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity> </application></manifest>
    55. 55. AndroidManifest.xml<?xml version="1.0" encoding="utf-8"?><manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.mlst.hellogtug" android:versionCode="1" android:versionName="1.0" > <uses-sdk android:minSdkVersion="10" /> <application android:icon="@drawable/ic_launcher" android:label="@string/app_name" > <activity android:label="@string/app_name" android:name=".Main" > <intent-filter > <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity> </application></manifest>
    56. 56. AndroidManifest.xml<?xml version="1.0" encoding="utf-8"?><manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.mlst.hellogtug" android:versionCode="1" android:versionName="1.0" > <uses-sdk android:minSdkVersion="10" /> <application android:icon="@drawable/ic_launcher" android:label="@string/app_name" > <activity android:label="@string/app_name" android:name=".Main" > <intent-filter > <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity> </application></manifest>
    57. 57. AndroidManifest.xml<?xml version="1.0" encoding="utf-8"?><manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.mlst.hellogtug" android:versionCode="1" android:versionName="1.0" > <uses-sdk android:minSdkVersion="10" /> <application android:icon="@drawable/ic_launcher" android:label="@string/app_name" > <activity android:label="@string/app_name" android:name=".Main" > <intent-filter > <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity> </application></manifest>
    58. 58. AndroidManifest.xml<?xml version="1.0" encoding="utf-8"?><manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.mlst.hellogtug" android:versionCode="1" android:versionName="1.0" > <uses-sdk android:minSdkVersion="10" /> <application android:icon="@drawable/ic_launcher" android:label="@string/app_name" > <activity android:label="@string/app_name" android:name=".Main" > <intent-filter > <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity> </application></manifest>
    59. 59. AndroidManifest.xml<?xml version="1.0" encoding="utf-8"?><manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.mlst.hellogtug" android:versionCode="1" android:versionName="1.0" > <uses-sdk android:minSdkVersion="10" /> <application android:icon="@drawable/ic_launcher" android:label="@string/app_name" > <activity android:label="@string/app_name" android:name=".Main" > <intent-filter > <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity> </application></manifest>
    60. 60. AndroidManifest.xml<?xml version="1.0" encoding="utf-8"?><manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.mlst.hellogtug" android:versionCode="1" android:versionName="1.0" > <uses-sdk android:minSdkVersion="10" /> <application android:icon="@drawable/ic_launcher" android:label="@string/app_name" > <activity android:label="@string/app_name" android:name=".Main" > <intent-filter > <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity> </application></manifest>
    61. 61. AndroidManifest.xml<?xml version="1.0" encoding="utf-8"?><manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.mlst.hellogtug" android:versionCode="1" android:versionName="1.0" > <uses-sdk android:minSdkVersion="10" /> <application android:icon="@drawable/ic_launcher" android:label="@string/app_name" > <activity android:label="@string/app_name" android:name=".Main" > <intent-filter > <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity> </application></manifest>
    62. 62. AndroidManifest.xml<?xml version="1.0" encoding="utf-8"?><manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.mlst.hellogtug" android:versionCode="1" android:versionName="1.0" > <uses-sdk android:minSdkVersion="10" /> <application android:icon="@drawable/ic_launcher" android:label="@string/app_name" > <activity android:label="@string/app_name" android:name=".Main" > <intent-filter > <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity> </application></manifest>
    63. 63. Activitypackage com.mlst.hellogtug;import android.app.Activity;import android.os.Bundle;public class Main extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); }}
    64. 64. Activitypackage com.mlst.hellogtug;import android.app.Activity;import android.os.Bundle;public class Main extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); }}
    65. 65. Activitypackage com.mlst.hellogtug;import android.app.Activity;import android.os.Bundle;public class Main extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); }}
    66. 66. Activitypackage com.mlst.hellogtug;import android.app.Activity;import android.os.Bundle;public class Main extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); }}
    67. 67. XML-Based Layout (main.xml)<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" > <TextView android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/hello" /></LinearLayout>
    68. 68. XML-Based Layout (main.xml)<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" > <TextView android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/hello" /></LinearLayout>
    69. 69. XML-Based Layout (main.xml)<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" > <TextView android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/hello" /></LinearLayout>
    70. 70. XML-Based Layout (main.xml)<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" > <TextView android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/hello" /></LinearLayout>
    71. 71. XML-Based Layout (main.xml)<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" > <TextView android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/hello" /></LinearLayout>
    72. 72. XML-Based Layout (main.xml)<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" > <TextView android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/hello" /></LinearLayout>
    73. 73. XML-Based Layout (main.xml)<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" > <TextView android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/hello" /></LinearLayout>
    74. 74. XML-Based Layout (main.xml)<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" > <TextView android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/hello" /></LinearLayout>
    75. 75. strings.xml<?xml version="1.0" encoding="utf-8"?><resources> <string name="hello">Hello World,Main!</string> <string name="app_name">HelloGTUG</string></resources>
    76. 76. Running your application
    77. 77. Running your application1. Launch the emulator
    78. 78. Running your application1. Launch the emulator2. Install the application using ADB or Android Debug Bridge (adb install application.apk)
    79. 79. Running your application1. Launch the emulator2. Install the application using ADB or Android Debug Bridge (adb install application.apk)3. Monitor the logs by using Android Debug Bridge (adb logcat or adb lolcat - adds more fun)
    80. 80. Running your application1. Launch the emulator2. Install the application using ADB or Android Debug Bridge (adb install application.apk)3. Monitor the logs by using Android Debug Bridge (adb logcat or adb lolcat - adds more fun)4.Modify code then repeat #2
    81. 81. Debugging your AppWindow > Open Perspective > DDMSSelect the application to debug in Devices sectionClick the green bug icon at the toolbarSet your breakpoints
    82. 82. Questions
    1. A particular slide catching your eye?

      Clipping is a handy way to collect important slides you want to go back to later.

    ×