Android Mobile Boot camp
KINU | TANZANIA

10/23/2013

KINU | Android Mobile BootCamp
Android Platform Overview

10/23/2013

KINU | Android Mobile BootCamp
Set Android Emulator

Not a Simulator!
10/23/2013

KINU | Android Mobile BootCamp
Create new Android project

10/23/2013

KINU | Android Mobile BootCamp
Android project layout

10/23/2013

KINU | Android Mobile BootCamp
Android Key Concepts
and building blocks

10/23/2013

KINU | Android Mobile BootCamp
Activity
Android Key Concepts

10/23/2013

KINU | Android Mobile BootCamp
Android Widgets
Android Key Concepts
 Button
 TextView
 EditText

 ImageView
 ImageButton

 And many more…..
INPUT
1...
Android Intents
Android Key Concepts

provides runtime binding

SCREEN 2
[ACTIVITY]

SCREEN 1
[ACTIVITY]

Intent about=new...
Android Intents
Android Key Concepts

Intent intent = new Intent(this, DisplayMessageActivity.class);

Parameters
 Contex...
Android Intents
Android Key Concepts
 Carry Collection of Data to another Activity
 extras
putExtra
 public void sendMe...
XML codes
Android Key Concepts

<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientati...
Android Manifest File
Android Key Concepts
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas....
Android Manifest File
Android Key Concepts

<activity android:name=".Startmenu"></activity>
<activity android:name=".About...
Android layouts
Android Key Concepts

 Linear Layout
 Absolute layout
 Frame layout

10/23/2013

KINU | Android Mobile ...
Android Menus [options menu]
Android Key Concepts

10/23/2013

KINU | Android Mobile BootCamp
Android Key Concepts

Android Icons

10/23/2013

KINU | Android Mobile BootCamp
Android Key Concepts

Android App Deployment
APK FILE

10/23/2013

KINU | Android Mobile BootCamp
1

10/23/2013

Reference Android App

KINU | Android Mobile BootCamp
Get your hands Dirty

10/23/2013

KINU | Android Mobile BootCamp
Upcoming SlideShare
Loading in …5
×

Android Bootcamp Tanzania:Overview of android platform

666 views

Published on

The Content helps those who wish to program mobile applications using android platform. The content has been used to conduct mobile application boot camps using android platform on different regions in Tanzania

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

No Downloads
Views
Total views
666
On SlideShare
0
From Embeds
0
Number of Embeds
4
Actions
Shares
0
Downloads
34
Comments
0
Likes
2
Embeds 0
No embeds

No notes for slide

Android Bootcamp Tanzania:Overview of android platform

  1. 1. Android Mobile Boot camp KINU | TANZANIA 10/23/2013 KINU | Android Mobile BootCamp
  2. 2. Android Platform Overview 10/23/2013 KINU | Android Mobile BootCamp
  3. 3. Set Android Emulator Not a Simulator! 10/23/2013 KINU | Android Mobile BootCamp
  4. 4. Create new Android project 10/23/2013 KINU | Android Mobile BootCamp
  5. 5. Android project layout 10/23/2013 KINU | Android Mobile BootCamp
  6. 6. Android Key Concepts and building blocks 10/23/2013 KINU | Android Mobile BootCamp
  7. 7. Activity Android Key Concepts 10/23/2013 KINU | Android Mobile BootCamp
  8. 8. Android Widgets Android Key Concepts  Button  TextView  EditText  ImageView  ImageButton  And many more….. INPUT 10/23/2013 KINU | Android Mobile BootCamp OUTPUT
  9. 9. Android Intents Android Key Concepts provides runtime binding SCREEN 2 [ACTIVITY] SCREEN 1 [ACTIVITY] Intent about=new Intent(getApplicationContext(),About.class); startActivity(about); 10/23/2013 KINU | Android Mobile BootCamp
  10. 10. Android Intents Android Key Concepts Intent intent = new Intent(this, DisplayMessageActivity.class); Parameters  Context  The Class of the app component to which the system should deliver the Intent (in this case, the activity that should be started) 10/23/2013 KINU | Android Mobile BootCamp
  11. 11. Android Intents Android Key Concepts  Carry Collection of Data to another Activity  extras putExtra  public void sendMessage(View view) { Intent intent = new Intent(this, DisplayMessageActivity.class); EditText editText = (EditText) findViewById(R.id.edit_message); String message = editText.getText().toString(); intent.putExtra(EXTRA_MESSAGE, message); startActivity(intent); } Receive Intent  Intent intent = getIntent(); String message = intent.getStringExtra(MainActivity.EXTRA_MESSAGE); 10/23/2013 KINU | Android Mobile BootCamp
  12. 12. XML codes Android Key Concepts <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" android:background="#008080"> 10/23/2013 KINU | Android Mobile BootCamp
  13. 13. Android Manifest File Android Key Concepts <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.randomname.costech" android:versionCode="1" android:versionName="1.0"> <application android:icon="@drawable/appicon" android:label="@string/app_name"> <activity android:name=".AppStartmenu" android:label="@string/app_name"> <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity> Think of plane manifest! 10/23/2013 KINU | Android Mobile BootCamp
  14. 14. Android Manifest File Android Key Concepts <activity android:name=".Startmenu"></activity> <activity android:name=".About"></activity> <activity android:name=".Help"></activity> </application> <uses-sdk android:minSdkVersion="8" /> </manifest> Think of plane manifest! 10/23/2013 KINU | Android Mobile BootCamp
  15. 15. Android layouts Android Key Concepts  Linear Layout  Absolute layout  Frame layout 10/23/2013 KINU | Android Mobile BootCamp
  16. 16. Android Menus [options menu] Android Key Concepts 10/23/2013 KINU | Android Mobile BootCamp
  17. 17. Android Key Concepts Android Icons 10/23/2013 KINU | Android Mobile BootCamp
  18. 18. Android Key Concepts Android App Deployment APK FILE 10/23/2013 KINU | Android Mobile BootCamp
  19. 19. 1 10/23/2013 Reference Android App KINU | Android Mobile BootCamp
  20. 20. Get your hands Dirty 10/23/2013 KINU | Android Mobile BootCamp

×