Android Bootcamp Tanzania:Overview of android platform
-
Upload
denis-minja -
Category
Education
-
view
439 -
download
2
description
Transcript of Android Bootcamp Tanzania:Overview of android platform
![Page 1: Android Bootcamp Tanzania:Overview of android platform](https://reader035.fdocuments.in/reader035/viewer/2022062512/554a2029b4c9055c598b58e3/html5/thumbnails/1.jpg)
04/11/2023 KINU | Android Mobile BootCamp
Android Mobile Boot campKINU | TANZANIA
![Page 2: Android Bootcamp Tanzania:Overview of android platform](https://reader035.fdocuments.in/reader035/viewer/2022062512/554a2029b4c9055c598b58e3/html5/thumbnails/2.jpg)
04/11/2023 KINU | Android Mobile BootCamp
Android Platform Overview
![Page 3: Android Bootcamp Tanzania:Overview of android platform](https://reader035.fdocuments.in/reader035/viewer/2022062512/554a2029b4c9055c598b58e3/html5/thumbnails/3.jpg)
04/11/2023 KINU | Android Mobile BootCamp
Set Android Emulator
Not a Simulator!
![Page 4: Android Bootcamp Tanzania:Overview of android platform](https://reader035.fdocuments.in/reader035/viewer/2022062512/554a2029b4c9055c598b58e3/html5/thumbnails/4.jpg)
04/11/2023 KINU | Android Mobile BootCamp
Create new Android project
![Page 5: Android Bootcamp Tanzania:Overview of android platform](https://reader035.fdocuments.in/reader035/viewer/2022062512/554a2029b4c9055c598b58e3/html5/thumbnails/5.jpg)
04/11/2023 KINU | Android Mobile BootCamp
Android project layout
![Page 6: Android Bootcamp Tanzania:Overview of android platform](https://reader035.fdocuments.in/reader035/viewer/2022062512/554a2029b4c9055c598b58e3/html5/thumbnails/6.jpg)
04/11/2023 KINU | Android Mobile BootCamp
Android Key Concepts and building blocks
![Page 7: Android Bootcamp Tanzania:Overview of android platform](https://reader035.fdocuments.in/reader035/viewer/2022062512/554a2029b4c9055c598b58e3/html5/thumbnails/7.jpg)
04/11/2023 KINU | Android Mobile BootCamp
Activity Android Key Concepts
![Page 8: Android Bootcamp Tanzania:Overview of android platform](https://reader035.fdocuments.in/reader035/viewer/2022062512/554a2029b4c9055c598b58e3/html5/thumbnails/8.jpg)
04/11/2023 KINU | Android Mobile BootCamp
Android Widgets Android Key Concepts
Button
TextView
EditText
ImageView
ImageButton
And many more…..
INPUT OUTPUT
![Page 9: Android Bootcamp Tanzania:Overview of android platform](https://reader035.fdocuments.in/reader035/viewer/2022062512/554a2029b4c9055c598b58e3/html5/thumbnails/9.jpg)
04/11/2023 KINU | Android Mobile BootCamp
Android Intents Android Key Concepts
Intent about=new Intent(getApplicationContext(),About.class);startActivity(about);
SCREEN 1[ACTIVITY]
SCREEN 2[ACTIVITY]
provides runtime binding
![Page 10: Android Bootcamp Tanzania:Overview of android platform](https://reader035.fdocuments.in/reader035/viewer/2022062512/554a2029b4c9055c598b58e3/html5/thumbnails/10.jpg)
04/11/2023 KINU | Android Mobile BootCamp
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)
![Page 11: Android Bootcamp Tanzania:Overview of android platform](https://reader035.fdocuments.in/reader035/viewer/2022062512/554a2029b4c9055c598b58e3/html5/thumbnails/11.jpg)
04/11/2023 KINU | Android Mobile BootCamp
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);
![Page 12: Android Bootcamp Tanzania:Overview of android platform](https://reader035.fdocuments.in/reader035/viewer/2022062512/554a2029b4c9055c598b58e3/html5/thumbnails/12.jpg)
04/11/2023 KINU | Android Mobile BootCamp
XML codesAndroid 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">
![Page 13: Android Bootcamp Tanzania:Overview of android platform](https://reader035.fdocuments.in/reader035/viewer/2022062512/554a2029b4c9055c598b58e3/html5/thumbnails/13.jpg)
04/11/2023 KINU | Android Mobile BootCamp
Android Manifest FileAndroid Key Concepts
Think of plane manifest!
<?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>
![Page 14: Android Bootcamp Tanzania:Overview of android platform](https://reader035.fdocuments.in/reader035/viewer/2022062512/554a2029b4c9055c598b58e3/html5/thumbnails/14.jpg)
04/11/2023 KINU | Android Mobile BootCamp
Android Manifest FileAndroid 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!
![Page 15: Android Bootcamp Tanzania:Overview of android platform](https://reader035.fdocuments.in/reader035/viewer/2022062512/554a2029b4c9055c598b58e3/html5/thumbnails/15.jpg)
04/11/2023 KINU | Android Mobile BootCamp
Android layoutsAndroid Key Concepts
Linear Layout
Absolute layout
Frame layout
![Page 16: Android Bootcamp Tanzania:Overview of android platform](https://reader035.fdocuments.in/reader035/viewer/2022062512/554a2029b4c9055c598b58e3/html5/thumbnails/16.jpg)
04/11/2023 KINU | Android Mobile BootCamp
Android Menus [options menu] Android Key Concepts
![Page 17: Android Bootcamp Tanzania:Overview of android platform](https://reader035.fdocuments.in/reader035/viewer/2022062512/554a2029b4c9055c598b58e3/html5/thumbnails/17.jpg)
04/11/2023 KINU | Android Mobile BootCamp
Android Icons
Android Key Concepts
![Page 18: Android Bootcamp Tanzania:Overview of android platform](https://reader035.fdocuments.in/reader035/viewer/2022062512/554a2029b4c9055c598b58e3/html5/thumbnails/18.jpg)
04/11/2023 KINU | Android Mobile BootCamp
Android App Deployment
Android Key Concepts
APK FILE
![Page 19: Android Bootcamp Tanzania:Overview of android platform](https://reader035.fdocuments.in/reader035/viewer/2022062512/554a2029b4c9055c598b58e3/html5/thumbnails/19.jpg)
04/11/2023 KINU | Android Mobile BootCamp
1 Reference Android App
![Page 20: Android Bootcamp Tanzania:Overview of android platform](https://reader035.fdocuments.in/reader035/viewer/2022062512/554a2029b4c9055c598b58e3/html5/thumbnails/20.jpg)
04/11/2023 KINU | Android Mobile BootCamp
Get your hands Dirty