0
Hello World Sample
Agenda
Hello World !!!
Interacting with Buttons
Screen Navigation
start Activity For Result
Intents
Activity
Services
Broa...
Hello World !!!
1. Create a new Android Project
‫ﬤ‬ Select File > New > Android Project
2. Fill out the project details
‫ﬤ...
5
6
7
8
Interacting with Button
9
Interacting with Buttons
10
11
Screen Navigation
12
13
14
15
16
17
18
Start Activity For Result
20
21
22
23
24
Run hello world
• Select the root of the
project.
• Click in the ‘green play
icon’.
• Pick Android Project
• That will get...
The Android Manifest lists application
details
<?xml version="1.0" encoding="utf-8"?>
<manifest
xmlns:android="http://sche...
The Android Manifest File
 This file must declare all activities, services, broadcast receivers and content
provider of t...
Questions?
01  07 -android programming basics (cont)
Upcoming SlideShare
Loading in...5
×

01 07 -android programming basics (cont)

145

Published on

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

  • Be the first to like this

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

No notes for slide

Transcript of "01 07 -android programming basics (cont)"

  1. 1. Hello World Sample
  2. 2. Agenda Hello World !!! Interacting with Buttons Screen Navigation start Activity For Result Intents Activity Services Broadcast Receivers
  3. 3. Hello World !!! 1. Create a new Android Project ‫ﬤ‬ Select File > New > Android Project 2. Fill out the project details ‫ﬤ‬ Enter HelloWorld for Project Name ‫ﬤ‬ Select “Create new project in workspace” ‫ﬤ‬ Enter HelloWorld in App name. ‫ﬤ‬ Enter com.enlume.HelloWorld in Package Name ‫ﬤ‬ Enter HelloWorld in Activity name (and yes we want to create an Activity)
  4. 4. 5
  5. 5. 6
  6. 6. 7
  7. 7. 8
  8. 8. Interacting with Button 9
  9. 9. Interacting with Buttons 10
  10. 10. 11
  11. 11. Screen Navigation 12
  12. 12. 13
  13. 13. 14
  14. 14. 15
  15. 15. 16
  16. 16. 17
  17. 17. 18
  18. 18. Start Activity For Result
  19. 19. 20
  20. 20. 21
  21. 21. 22
  22. 22. 23
  23. 23. 24
  24. 24. Run hello world • Select the root of the project. • Click in the ‘green play icon’. • Pick Android Project • That will get the emulator going…
  25. 25. The Android Manifest lists application details <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android " package="com.my_domain.app.helloactivity"> <application android:label="@string/app_name"> <activity android:name=".HelloActivity"> <intent-filter> <action android:name="android.intent.action.MAIN"/> <category android:name="android.intent.category.LAUNCHER"/> </intent-filter> </activity> </application>
  26. 26. The Android Manifest File  This file must declare all activities, services, broadcast receivers and content provider of the application.  It must also contain the required permissions for the application. For example if the application requires network access it must be specified here  It can be thought as the deployment descriptor for an Android application.  The "package" attribute defines the base package for the following Java elements  "android:versionName" and "android:versionCode" specify the version of your application.  intent filter registered defines that this activity is started once the application starts (action android:name="android.intent.action.MAIN").  The category definition (category android:name="android.intent.category.LAUNCHER" ) defines that this application is added to the application directory on the Android device.  The "uses-sdk" part defines the minimal SDK version your application is valid for.
  27. 27. Questions?
  1. A particular slide catching your eye?

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

×