Android development beginners faq

Khirulnizam Abd Rahman
Khirulnizam Abd RahmanEdu-Blogger at http://kerul.net em blog.kerul.net
Slideshare.net/khirulnizam
       fb.com/khirulnizam
            blog.kerul.net




          Android Dev 101
             June 23, 2012
  Khirulnizam Abd Rahman
Agenda
   Intro
   Demo 1: New Android project
    Properties window
    Android Emulator
    DDMS - Dalvik Debug Monitor
    Demo 2: Widgets and Interactions

   Day 2 - 24-06-2013 (8.30am - 4pm)
    Demo 3: HTML and Webview
    Demo 4: Audio
   Demo 5: Video
    Signing APK
   Uploading to Google Play




    6/22/2012                http://blog.kerul.net   2
Android Devices




6/22/2012   http://blog.kerul.net   3
Android Story
     http://www.techsavys.info/2011/07/the-
      android-story-an-android-infographic-
      discussing-about-its-beginning-on-
      going-changes-and-worldwide-market-
      shares.html




6/22/2012              http://blog.kerul.net   4
Faq1: What is Android?
  Android is a software stack for mobile devices
   that includes an operating system,
   middleware and key applications (platform).
   The Android SDK provides the tools and APIs
   necessary to begin developing applications on
   the Android platform using the Java
   programming language.
  The kernel of most Android version is based
   on Linux 2.6 (3.0 for ICS).
  Android architecture;


6/22/2012           http://blog.kerul.net           5
Android Architecture




6/22/2012    http://blog.kerul.net   6
Faq2: Who develop
Android?
    Initially developed by Andrew
     (Andy) Rubin and his team in
     Android Inc.
    Google acquired Android Inc.
     in 2005.
    Now, it is developed by Google
     under Andy Rubin (Senior Vice
     President of Mobile)



6/22/2012            http://blog.kerul.net   7
Faq3: How many versions
(distributions) Android has?




6/22/2012     http://blog.kerul.net   8
     Source:
      http://developer.android.com/resources/dashb
      oard/platform-versions.html
6/22/2012               http://blog.kerul.net        9
Faq4: What is API Level?
       API Level is an integer value that uniquely
        identifies the framework API revision offered
        by a version of the Android platform.
       The Android platform provides a framework
        API that applications can use to interact with
        the underlying Android system.




6/22/2012               http://blog.kerul.net        10
Faq5: What is Android
app?
      Developer can develop application that runs
       on top of Android.
      App is actually a simpler version of
       application.
      Uses *.apk for the installer file extension.




6/22/2012              http://blog.kerul.net          11
App samples




6/22/2012     http://blog.kerul.net   12
Faq6: What is the language
used to develop Android
app?
  Java
     compiled into Dalvik Bytecode (NOTJava
      bytecode).
     Android provides Dalvik virtual machine-
      DVM inside Android (NOT Java virtual
      machine-JVM)
     Using Android API – (with some Java
      APIs).


6/22/2012             http://blog.kerul.net      13
Faq7: What is Dalvik Virtual
Machine, is it similar as JVM?
       Author - Dan Bornstein
       Dalvik VM implementing slightly different
        architecture to JVM.
       Dalvik VM is a register-based
        architecture.
       Being optimized for low memory and
        slower processing speed.
       The VM was slimmed down to use less
        space.

6/22/2012               http://blog.kerul.net       14
Faq8: What are tools needed
to develop Android App?
           Latest JDK – version 6 -
             http://www.oracle.com/technetwork/java/javase/downl
            oads/jdk-6u27-download-440405.html (not yet tested
            against JDK 7)
           Eclipse (as the IDE) -
             http://www.eclipse.org/downloads/packages/eclipse-
            ide-java-developers/indigor
           Android Development Toolkit (ADT 12) for Eclipse -
             http://developer.android.com/sdk/eclipse-adt.html
           Android SDK - http://developer.android.com/sdk/
           Installation guide - http://blog.kerul.net/2011/06/eclipse-
            helios-android-development.html
           Third parties: Titanium, PhoneGap, Unity3D



6/22/2012                         http://blog.kerul.net                   15
IDE - Eclipse




6/22/2012       http://blog.kerul.net   16
AppInventor -
appinventor.mit.edu/




6/22/2012     http://blog.kerul.net   17
Emulator




6/22/2012   http://blog.kerul.net   18
Dalvik Debugger




6/22/2012   http://blog.kerul.net   19
Faq8: Where to distribute my
App?
             market.android.com
             MobileApps.com
             GetJar.com




6/22/2012                 http://blog.kerul.net   20
6/22/2012   http://blog.kerul.net   21
6/22/2012   http://blog.kerul.net   22
Android Project Structure
     Inside Android Project, there should be;
      /src – the Java codes are here
      /gen – generated automatically
      /assets – put your fonts, videos, sounds here
      /res – images, layout and global variables
        /drawable-hdpi –for high spec phones
        /drawable-ldpi –for low spec phones
        /drawable-mdpi –for medium spec phones
        /layout – all XML file for the screen(s) layout
        /values – global constant variables

6/22/2012                 http://blog.kerul.net           23
6/22/2012   http://blog.kerul.net   24
AndroidManifest
     AndroidManifest.xml – app’s
      permissions need to be registered here
      – (eg: app can access Internet, phone
      contacts, camera, etc must be
      mentioned here)




6/22/2012              http://blog.kerul.net   25
<?xml version="1.0" encoding="utf-8"?>
      <manifest xmlns:android="http://schemas.android.com/apk/res/android"
         android:versionCode="7"
         android:versionName="1.7"
         package="net.kerul.mMathurat">

         <application android:icon="@drawable/icon" android:label="@string/app_name"
         android:taskAffinity=".mMathuratActivity">
            <activity android:name=".mMathuratActivity"
                    android:label="@string/app_name"
                    android:screenOrientation="portrait">
              <intent-filter>
                  <action android:name="android.intent.action.MAIN" />
                  <category android:name="android.intent.category.LAUNCHER" />
              </intent-filter>
            </activity>
            <activity android:name=".Aboutus" class=".Aboutus"
            android:label="Mengenai kami..." android:screenOrientation="portrait">
          </activity>
          <activity android:name=".Berterusan" class=".Berterusan"
            android:label="Mod pemanduan..." android:screenOrientation="portrait">
          </activity>
         </application>
         <uses-sdk android:minSdkVersion="7" />
         <receiver android:name=".DetectIncomingCall">
      <intent-filter>
         <action android:name="android.intent.action.PHONE_STATE" />
      </intent-filter>
      </receiver>

        <uses-permission android:name="android.permission.READ_PHONE_STATE" />
        <uses-permission android:name="android.permission.INTERNET" />
        <uses-permission android:name="android.permission.VIBRATE"></uses-permission>
      </manifest>

6/22/2012                                        http://blog.kerul.net                  26
DEMO
 Demo 0: The IDE (Eclipse + ADT)
 Demo 1: Creating a new Android Project
  (and the project structure).
 Demo 2: Widgets and interaction –
  Textbox and Button.
 Demo 3: HTML and WebView
 Demo 4: APK and Distribution




6/22/2012          http://blog.kerul.net   27
TQvm




                                Q&A
6/22/2012          http://blog.kerul.net   28
1 de 28

Recomendados

Android Development Tutorial V3 por
Android Development Tutorial   V3Android Development Tutorial   V3
Android Development Tutorial V3Diego Torres Milano
11.1K visualizações73 slides
Android Development: Build Android App from Scratch por
Android Development: Build Android App from ScratchAndroid Development: Build Android App from Scratch
Android Development: Build Android App from ScratchTaufan Erfiyanto
3.7K visualizações78 slides
Ii 1100-android development for fun and profit por
Ii 1100-android development for fun and profitIi 1100-android development for fun and profit
Ii 1100-android development for fun and profitAdrian Mikeliunas
915 visualizações26 slides
Ii 1300-java essentials for android por
Ii 1300-java essentials for androidIi 1300-java essentials for android
Ii 1300-java essentials for androidAdrian Mikeliunas
1.4K visualizações45 slides
Ii 1500-publishing your android application por
Ii 1500-publishing your android applicationIi 1500-publishing your android application
Ii 1500-publishing your android applicationAdrian Mikeliunas
1.4K visualizações36 slides
Android development basics por
Android development basicsAndroid development basics
Android development basicsPramesh Gautam
514 visualizações15 slides

Mais conteúdo relacionado

Mais procurados

Introduction to Android Development por
Introduction to Android DevelopmentIntroduction to Android Development
Introduction to Android DevelopmentEdureka!
2.3K visualizações27 slides
Getting started with android dev and test perspective por
Getting started with android   dev and test perspectiveGetting started with android   dev and test perspective
Getting started with android dev and test perspectiveGunjan Kumar
3.2K visualizações79 slides
Google Android por
Google AndroidGoogle Android
Google AndroidMichael Angelo Rivera
3.8K visualizações11 slides
Android tutorial por
Android tutorialAndroid tutorial
Android tutorialmaster760
1.8K visualizações34 slides
Android development tutorial por
Android development tutorialAndroid development tutorial
Android development tutorialnazzf
72 visualizações50 slides
Android Development Training por
Android Development TrainingAndroid Development Training
Android Development Trainingchandutata
44 visualizações9 slides

Mais procurados(20)

Introduction to Android Development por Edureka!
Introduction to Android DevelopmentIntroduction to Android Development
Introduction to Android Development
Edureka!2.3K visualizações
Getting started with android dev and test perspective por Gunjan Kumar
Getting started with android   dev and test perspectiveGetting started with android   dev and test perspective
Getting started with android dev and test perspective
Gunjan Kumar3.2K visualizações
Android tutorial por master760
Android tutorialAndroid tutorial
Android tutorial
master7601.8K visualizações
Android development tutorial por nazzf
Android development tutorialAndroid development tutorial
Android development tutorial
nazzf72 visualizações
Android Development Training por chandutata
Android Development TrainingAndroid Development Training
Android Development Training
chandutata44 visualizações
Android App development and test environment, Understaing android app structure por Vijay Rastogi
Android App development and test environment, Understaing android app structureAndroid App development and test environment, Understaing android app structure
Android App development and test environment, Understaing android app structure
Vijay Rastogi5.8K visualizações
9780134433646 annuzzi ch02 (1) por Peter Mburu
9780134433646 annuzzi ch02 (1)9780134433646 annuzzi ch02 (1)
9780134433646 annuzzi ch02 (1)
Peter Mburu113 visualizações
Getting Started with Android Development por Edureka!
Getting Started with Android DevelopmentGetting Started with Android Development
Getting Started with Android Development
Edureka!1.2K visualizações
Using Maven to build Java & Android program por Mu Chun Wang
Using Maven to build Java & Android programUsing Maven to build Java & Android program
Using Maven to build Java & Android program
Mu Chun Wang2.3K visualizações
Android Studio Overview por Salim Hosen
Android Studio OverviewAndroid Studio Overview
Android Studio Overview
Salim Hosen268 visualizações
Creating the first app with android studio por Parinita03
Creating the first app with android studioCreating the first app with android studio
Creating the first app with android studio
Parinita035.3K visualizações
Google Glasses Integration with SAP por Gh14Cc10
Google Glasses Integration with SAPGoogle Glasses Integration with SAP
Google Glasses Integration with SAP
Gh14Cc101.5K visualizações
Google Glass, the GDK, and HTML5 por Oswald Campesato
Google Glass, the GDK, and HTML5Google Glass, the GDK, and HTML5
Google Glass, the GDK, and HTML5
Oswald Campesato1.2K visualizações
Internship in android development-no appendix por Diogo Pereira
Internship in android development-no appendixInternship in android development-no appendix
Internship in android development-no appendix
Diogo Pereira2.3K visualizações
Android chapter02-setup2-emulator por guru472
Android chapter02-setup2-emulatorAndroid chapter02-setup2-emulator
Android chapter02-setup2-emulator
guru4723.8K visualizações
Android Study Jams - Induction por GDSCAISSMSIOIT
Android Study Jams - InductionAndroid Study Jams - Induction
Android Study Jams - Induction
GDSCAISSMSIOIT292 visualizações
Android development 1july por Edureka!
Android development 1julyAndroid development 1july
Android development 1july
Edureka!976 visualizações
実践Android Developer Testing por ussy
実践Android Developer Testing実践Android Developer Testing
実践Android Developer Testing
ussy3.9K visualizações

Similar a Android development beginners faq

Android tutorial por
Android tutorialAndroid tutorial
Android tutorialVaiga Nandhakumar
199 visualizações34 slides
Android tutorial ppt por
Android tutorial pptAndroid tutorial ppt
Android tutorial pptRehna Renu
12.8K visualizações34 slides
Android tutorial por
Android tutorialAndroid tutorial
Android tutorialJagannath Das
262 visualizações34 slides
Android tutorial por
Android tutorialAndroid tutorial
Android tutorialDanish_k
677 visualizações34 slides
Android Stsucture por
Android StsuctureAndroid Stsucture
Android StsuctureKartik Kalpande Patil
71 visualizações33 slides
Notes Unit2.pptx por
Notes Unit2.pptxNotes Unit2.pptx
Notes Unit2.pptxMIT Autonomous Aurangabad
229 visualizações19 slides

Similar a Android development beginners faq(20)

Android tutorial por Vaiga Nandhakumar
Android tutorialAndroid tutorial
Android tutorial
Vaiga Nandhakumar199 visualizações
Android tutorial ppt por Rehna Renu
Android tutorial pptAndroid tutorial ppt
Android tutorial ppt
Rehna Renu12.8K visualizações
Android tutorial por Jagannath Das
Android tutorialAndroid tutorial
Android tutorial
Jagannath Das262 visualizações
Android tutorial por Danish_k
Android tutorialAndroid tutorial
Android tutorial
Danish_k677 visualizações
The Glass Class - Tutorial 3 - Android and GDK por Gun Lee
The Glass Class - Tutorial 3 - Android and GDKThe Glass Class - Tutorial 3 - Android and GDK
The Glass Class - Tutorial 3 - Android and GDK
Gun Lee6.2K visualizações
Mobile & android apps presentation por Aya Taleb
Mobile & android apps  presentationMobile & android apps  presentation
Mobile & android apps presentation
Aya Taleb711 visualizações
Getting Started with Android 1.5 por Gaurav Kohli
Getting Started with Android 1.5Getting Started with Android 1.5
Getting Started with Android 1.5
Gaurav Kohli678 visualizações
Andriod por Chayan Upadhyay
Andriod Andriod
Andriod
Chayan Upadhyay2.3K visualizações
Android App Development Intro at ESC SV 2012 por Opersys inc.
Android App Development Intro at ESC SV 2012Android App Development Intro at ESC SV 2012
Android App Development Intro at ESC SV 2012
Opersys inc.4.9K visualizações
AndroidOverview por stevenindands
AndroidOverviewAndroidOverview
AndroidOverview
stevenindands219 visualizações
Native Android Development Practices por Roy Clarkson
Native Android Development PracticesNative Android Development Practices
Native Android Development Practices
Roy Clarkson1.5K visualizações
Introduction to Android - Mobile Fest Singapore 2009 por sullis
Introduction to Android - Mobile Fest Singapore 2009Introduction to Android - Mobile Fest Singapore 2009
Introduction to Android - Mobile Fest Singapore 2009
sullis1.2K visualizações
Android studio por Andri Yabu
Android studioAndroid studio
Android studio
Andri Yabu564 visualizações
IntroToAndroid por Quickoffice Test
IntroToAndroidIntroToAndroid
IntroToAndroid
Quickoffice Test603 visualizações
Android a brief intro por Kieran Gutteridge
Android a brief introAndroid a brief intro
Android a brief intro
Kieran Gutteridge528 visualizações
Getting Started with Android - OSSPAC 2009 por sullis
Getting Started with Android - OSSPAC 2009Getting Started with Android - OSSPAC 2009
Getting Started with Android - OSSPAC 2009
sullis2.2K visualizações
Android dev o_auth por fantasy zheng
Android dev o_authAndroid dev o_auth
Android dev o_auth
fantasy zheng375 visualizações
Android Jump Start por Haim Michael
Android Jump StartAndroid Jump Start
Android Jump Start
Haim Michael702 visualizações

Mais de Khirulnizam Abd Rahman

Html5 + Bootstrap & Mobirise por
Html5 + Bootstrap & MobiriseHtml5 + Bootstrap & Mobirise
Html5 + Bootstrap & MobiriseKhirulnizam Abd Rahman
1.9K visualizações36 slides
Mobile Web App development multiplatform using phonegap-cordova por
Mobile Web App development multiplatform using phonegap-cordovaMobile Web App development multiplatform using phonegap-cordova
Mobile Web App development multiplatform using phonegap-cordovaKhirulnizam Abd Rahman
1.5K visualizações43 slides
Android app development hybrid approach for beginners - Tools Installations ... por
Android app development  hybrid approach for beginners - Tools Installations ...Android app development  hybrid approach for beginners - Tools Installations ...
Android app development hybrid approach for beginners - Tools Installations ...Khirulnizam Abd Rahman
1.2K visualizações35 slides
Chapter 6 Java IO File por
Chapter 6 Java IO FileChapter 6 Java IO File
Chapter 6 Java IO FileKhirulnizam Abd Rahman
1.2K visualizações7 slides
Chapter 5 Class File por
Chapter 5 Class FileChapter 5 Class File
Chapter 5 Class FileKhirulnizam Abd Rahman
1.2K visualizações13 slides
Chapter 4 - Classes in Java por
Chapter 4 - Classes in JavaChapter 4 - Classes in Java
Chapter 4 - Classes in JavaKhirulnizam Abd Rahman
1.4K visualizações46 slides

Mais de Khirulnizam Abd Rahman(20)

Mobile Web App development multiplatform using phonegap-cordova por Khirulnizam Abd Rahman
Mobile Web App development multiplatform using phonegap-cordovaMobile Web App development multiplatform using phonegap-cordova
Mobile Web App development multiplatform using phonegap-cordova
Khirulnizam Abd Rahman1.5K visualizações
Android app development hybrid approach for beginners - Tools Installations ... por Khirulnizam Abd Rahman
Android app development  hybrid approach for beginners - Tools Installations ...Android app development  hybrid approach for beginners - Tools Installations ...
Android app development hybrid approach for beginners - Tools Installations ...
Khirulnizam Abd Rahman1.2K visualizações
Android app development Hybrid approach for beginners por Khirulnizam Abd Rahman
Android app development  Hybrid approach for beginnersAndroid app development  Hybrid approach for beginners
Android app development Hybrid approach for beginners
Khirulnizam Abd Rahman1.2K visualizações
Tips menyediakan slaid pembentangan berkesan - tiada template por Khirulnizam Abd Rahman
Tips menyediakan slaid pembentangan berkesan - tiada templateTips menyediakan slaid pembentangan berkesan - tiada template
Tips menyediakan slaid pembentangan berkesan - tiada template
Khirulnizam Abd Rahman2.5K visualizações
Topik 4 Teknologi Komputer: Hardware, Software dan Heartware por Khirulnizam Abd Rahman
Topik 4 Teknologi Komputer: Hardware, Software dan HeartwareTopik 4 Teknologi Komputer: Hardware, Software dan Heartware
Topik 4 Teknologi Komputer: Hardware, Software dan Heartware
Khirulnizam Abd Rahman3K visualizações
Topik 3 Masyarakat Malaysia dan ICT por Khirulnizam Abd Rahman
Topik 3   Masyarakat Malaysia dan ICTTopik 3   Masyarakat Malaysia dan ICT
Topik 3 Masyarakat Malaysia dan ICT
Khirulnizam Abd Rahman4.1K visualizações
Topik 2 Sejarah Perkembanggan Ilmu NBWU1072 por Khirulnizam Abd Rahman
Topik 2 Sejarah Perkembanggan Ilmu NBWU1072Topik 2 Sejarah Perkembanggan Ilmu NBWU1072
Topik 2 Sejarah Perkembanggan Ilmu NBWU1072
Khirulnizam Abd Rahman3.1K visualizações
Panduan tugasan Makmal Teknologi Maklumat dalam Kehidupan Insan por Khirulnizam Abd Rahman
Panduan tugasan Makmal Teknologi Maklumat dalam Kehidupan InsanPanduan tugasan Makmal Teknologi Maklumat dalam Kehidupan Insan
Panduan tugasan Makmal Teknologi Maklumat dalam Kehidupan Insan
Khirulnizam Abd Rahman2.6K visualizações
Topik 1 Islam dan Teknologi Maklumat por Khirulnizam Abd Rahman
Topik 1 Islam dan Teknologi MaklumatTopik 1 Islam dan Teknologi Maklumat
Topik 1 Islam dan Teknologi Maklumat
Khirulnizam Abd Rahman3.2K visualizações
Application of Ontology in Semantic Information Retrieval by Prof Shahrul Azm... por Khirulnizam Abd Rahman
Application of Ontology in Semantic Information Retrieval by Prof Shahrul Azm...Application of Ontology in Semantic Information Retrieval by Prof Shahrul Azm...
Application of Ontology in Semantic Information Retrieval by Prof Shahrul Azm...
Khirulnizam Abd Rahman19.6K visualizações
Chapter 1 Nested Control Structures por Khirulnizam Abd Rahman
Chapter 1 Nested Control StructuresChapter 1 Nested Control Structures
Chapter 1 Nested Control Structures
Khirulnizam Abd Rahman1.6K visualizações
Chapter 1 nested control structures por Khirulnizam Abd Rahman
Chapter 1 nested control structuresChapter 1 nested control structures
Chapter 1 nested control structures
Khirulnizam Abd Rahman1.6K visualizações
DTCP2023 Fundamentals of Programming por Khirulnizam Abd Rahman
DTCP2023 Fundamentals of ProgrammingDTCP2023 Fundamentals of Programming
DTCP2023 Fundamentals of Programming
Khirulnizam Abd Rahman2.2K visualizações

Último

AI: mind, matter, meaning, metaphors, being, becoming, life values por
AI: mind, matter, meaning, metaphors, being, becoming, life valuesAI: mind, matter, meaning, metaphors, being, becoming, life values
AI: mind, matter, meaning, metaphors, being, becoming, life valuesTwain Liu 刘秋艳
35 visualizações16 slides
Top 10 Strategic Technologies in 2024: AI and Automation por
Top 10 Strategic Technologies in 2024: AI and AutomationTop 10 Strategic Technologies in 2024: AI and Automation
Top 10 Strategic Technologies in 2024: AI and AutomationAutomationEdge Technologies
14 visualizações14 slides
Tunable Laser (1).pptx por
Tunable Laser (1).pptxTunable Laser (1).pptx
Tunable Laser (1).pptxHajira Mahmood
23 visualizações37 slides
How to reduce cold starts for Java Serverless applications in AWS at JCON Wor... por
How to reduce cold starts for Java Serverless applications in AWS at JCON Wor...How to reduce cold starts for Java Serverless applications in AWS at JCON Wor...
How to reduce cold starts for Java Serverless applications in AWS at JCON Wor...Vadym Kazulkin
75 visualizações64 slides
Data-centric AI and the convergence of data and model engineering: opportunit... por
Data-centric AI and the convergence of data and model engineering:opportunit...Data-centric AI and the convergence of data and model engineering:opportunit...
Data-centric AI and the convergence of data and model engineering: opportunit...Paolo Missier
34 visualizações40 slides
The Importance of Cybersecurity for Digital Transformation por
The Importance of Cybersecurity for Digital TransformationThe Importance of Cybersecurity for Digital Transformation
The Importance of Cybersecurity for Digital TransformationNUS-ISS
27 visualizações26 slides

Último(20)

AI: mind, matter, meaning, metaphors, being, becoming, life values por Twain Liu 刘秋艳
AI: mind, matter, meaning, metaphors, being, becoming, life valuesAI: mind, matter, meaning, metaphors, being, becoming, life values
AI: mind, matter, meaning, metaphors, being, becoming, life values
Twain Liu 刘秋艳35 visualizações
Top 10 Strategic Technologies in 2024: AI and Automation por AutomationEdge Technologies
Top 10 Strategic Technologies in 2024: AI and AutomationTop 10 Strategic Technologies in 2024: AI and Automation
Top 10 Strategic Technologies in 2024: AI and Automation
AutomationEdge Technologies14 visualizações
Tunable Laser (1).pptx por Hajira Mahmood
Tunable Laser (1).pptxTunable Laser (1).pptx
Tunable Laser (1).pptx
Hajira Mahmood23 visualizações
How to reduce cold starts for Java Serverless applications in AWS at JCON Wor... por Vadym Kazulkin
How to reduce cold starts for Java Serverless applications in AWS at JCON Wor...How to reduce cold starts for Java Serverless applications in AWS at JCON Wor...
How to reduce cold starts for Java Serverless applications in AWS at JCON Wor...
Vadym Kazulkin75 visualizações
Data-centric AI and the convergence of data and model engineering: opportunit... por Paolo Missier
Data-centric AI and the convergence of data and model engineering:opportunit...Data-centric AI and the convergence of data and model engineering:opportunit...
Data-centric AI and the convergence of data and model engineering: opportunit...
Paolo Missier34 visualizações
The Importance of Cybersecurity for Digital Transformation por NUS-ISS
The Importance of Cybersecurity for Digital TransformationThe Importance of Cybersecurity for Digital Transformation
The Importance of Cybersecurity for Digital Transformation
NUS-ISS27 visualizações
Report 2030 Digital Decade por Massimo Talia
Report 2030 Digital DecadeReport 2030 Digital Decade
Report 2030 Digital Decade
Massimo Talia14 visualizações
Spesifikasi Lengkap ASUS Vivobook Go 14 por Dot Semarang
Spesifikasi Lengkap ASUS Vivobook Go 14Spesifikasi Lengkap ASUS Vivobook Go 14
Spesifikasi Lengkap ASUS Vivobook Go 14
Dot Semarang35 visualizações
DALI Basics Course 2023 por Ivory Egg
DALI Basics Course  2023DALI Basics Course  2023
DALI Basics Course 2023
Ivory Egg14 visualizações
Melek BEN MAHMOUD.pdf por MelekBenMahmoud
Melek BEN MAHMOUD.pdfMelek BEN MAHMOUD.pdf
Melek BEN MAHMOUD.pdf
MelekBenMahmoud14 visualizações
Future of Learning - Khoong Chan Meng por NUS-ISS
Future of Learning - Khoong Chan MengFuture of Learning - Khoong Chan Meng
Future of Learning - Khoong Chan Meng
NUS-ISS33 visualizações
ChatGPT and AI for Web Developers por Maximiliano Firtman
ChatGPT and AI for Web DevelopersChatGPT and AI for Web Developers
ChatGPT and AI for Web Developers
Maximiliano Firtman181 visualizações
Web Dev - 1 PPT.pdf por gdsczhcet
Web Dev - 1 PPT.pdfWeb Dev - 1 PPT.pdf
Web Dev - 1 PPT.pdf
gdsczhcet55 visualizações
Voice Logger - Telephony Integration Solution at Aegis por Nirmal Sharma
Voice Logger - Telephony Integration Solution at AegisVoice Logger - Telephony Integration Solution at Aegis
Voice Logger - Telephony Integration Solution at Aegis
Nirmal Sharma17 visualizações
Perth MeetUp November 2023 por Michael Price
Perth MeetUp November 2023 Perth MeetUp November 2023
Perth MeetUp November 2023
Michael Price15 visualizações
Attacking IoT Devices from a Web Perspective - Linux Day por Simone Onofri
Attacking IoT Devices from a Web Perspective - Linux Day Attacking IoT Devices from a Web Perspective - Linux Day
Attacking IoT Devices from a Web Perspective - Linux Day
Simone Onofri15 visualizações
Digital Product-Centric Enterprise and Enterprise Architecture - Tan Eng Tsze por NUS-ISS
Digital Product-Centric Enterprise and Enterprise Architecture - Tan Eng TszeDigital Product-Centric Enterprise and Enterprise Architecture - Tan Eng Tsze
Digital Product-Centric Enterprise and Enterprise Architecture - Tan Eng Tsze
NUS-ISS19 visualizações
.conf Go 2023 - Data analysis as a routine por Splunk
.conf Go 2023 - Data analysis as a routine.conf Go 2023 - Data analysis as a routine
.conf Go 2023 - Data analysis as a routine
Splunk93 visualizações
Java Platform Approach 1.0 - Picnic Meetup por Rick Ossendrijver
Java Platform Approach 1.0 - Picnic MeetupJava Platform Approach 1.0 - Picnic Meetup
Java Platform Approach 1.0 - Picnic Meetup
Rick Ossendrijver25 visualizações

Android development beginners faq

  • 1. Slideshare.net/khirulnizam fb.com/khirulnizam blog.kerul.net Android Dev 101 June 23, 2012 Khirulnizam Abd Rahman
  • 2. Agenda  Intro  Demo 1: New Android project Properties window Android Emulator DDMS - Dalvik Debug Monitor Demo 2: Widgets and Interactions  Day 2 - 24-06-2013 (8.30am - 4pm) Demo 3: HTML and Webview Demo 4: Audio  Demo 5: Video Signing APK  Uploading to Google Play 6/22/2012 http://blog.kerul.net 2
  • 3. Android Devices 6/22/2012 http://blog.kerul.net 3
  • 4. Android Story  http://www.techsavys.info/2011/07/the- android-story-an-android-infographic- discussing-about-its-beginning-on- going-changes-and-worldwide-market- shares.html 6/22/2012 http://blog.kerul.net 4
  • 5. Faq1: What is Android?  Android is a software stack for mobile devices that includes an operating system, middleware and key applications (platform). The Android SDK provides the tools and APIs necessary to begin developing applications on the Android platform using the Java programming language.  The kernel of most Android version is based on Linux 2.6 (3.0 for ICS).  Android architecture; 6/22/2012 http://blog.kerul.net 5
  • 6. Android Architecture 6/22/2012 http://blog.kerul.net 6
  • 7. Faq2: Who develop Android?  Initially developed by Andrew (Andy) Rubin and his team in Android Inc.  Google acquired Android Inc. in 2005.  Now, it is developed by Google under Andy Rubin (Senior Vice President of Mobile) 6/22/2012 http://blog.kerul.net 7
  • 8. Faq3: How many versions (distributions) Android has? 6/22/2012 http://blog.kerul.net 8
  • 9. Source: http://developer.android.com/resources/dashb oard/platform-versions.html 6/22/2012 http://blog.kerul.net 9
  • 10. Faq4: What is API Level?  API Level is an integer value that uniquely identifies the framework API revision offered by a version of the Android platform.  The Android platform provides a framework API that applications can use to interact with the underlying Android system. 6/22/2012 http://blog.kerul.net 10
  • 11. Faq5: What is Android app?  Developer can develop application that runs on top of Android.  App is actually a simpler version of application.  Uses *.apk for the installer file extension. 6/22/2012 http://blog.kerul.net 11
  • 12. App samples 6/22/2012 http://blog.kerul.net 12
  • 13. Faq6: What is the language used to develop Android app?  Java  compiled into Dalvik Bytecode (NOTJava bytecode).  Android provides Dalvik virtual machine- DVM inside Android (NOT Java virtual machine-JVM)  Using Android API – (with some Java APIs). 6/22/2012 http://blog.kerul.net 13
  • 14. Faq7: What is Dalvik Virtual Machine, is it similar as JVM?  Author - Dan Bornstein  Dalvik VM implementing slightly different architecture to JVM.  Dalvik VM is a register-based architecture.  Being optimized for low memory and slower processing speed.  The VM was slimmed down to use less space. 6/22/2012 http://blog.kerul.net 14
  • 15. Faq8: What are tools needed to develop Android App?  Latest JDK – version 6 - http://www.oracle.com/technetwork/java/javase/downl oads/jdk-6u27-download-440405.html (not yet tested against JDK 7)  Eclipse (as the IDE) - http://www.eclipse.org/downloads/packages/eclipse- ide-java-developers/indigor  Android Development Toolkit (ADT 12) for Eclipse - http://developer.android.com/sdk/eclipse-adt.html  Android SDK - http://developer.android.com/sdk/  Installation guide - http://blog.kerul.net/2011/06/eclipse- helios-android-development.html  Third parties: Titanium, PhoneGap, Unity3D 6/22/2012 http://blog.kerul.net 15
  • 16. IDE - Eclipse 6/22/2012 http://blog.kerul.net 16
  • 18. Emulator 6/22/2012 http://blog.kerul.net 18
  • 19. Dalvik Debugger 6/22/2012 http://blog.kerul.net 19
  • 20. Faq8: Where to distribute my App?  market.android.com  MobileApps.com  GetJar.com 6/22/2012 http://blog.kerul.net 20
  • 21. 6/22/2012 http://blog.kerul.net 21
  • 22. 6/22/2012 http://blog.kerul.net 22
  • 23. Android Project Structure  Inside Android Project, there should be; /src – the Java codes are here /gen – generated automatically /assets – put your fonts, videos, sounds here /res – images, layout and global variables /drawable-hdpi –for high spec phones /drawable-ldpi –for low spec phones /drawable-mdpi –for medium spec phones /layout – all XML file for the screen(s) layout /values – global constant variables 6/22/2012 http://blog.kerul.net 23
  • 24. 6/22/2012 http://blog.kerul.net 24
  • 25. AndroidManifest  AndroidManifest.xml – app’s permissions need to be registered here – (eg: app can access Internet, phone contacts, camera, etc must be mentioned here) 6/22/2012 http://blog.kerul.net 25
  • 26. <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionCode="7" android:versionName="1.7" package="net.kerul.mMathurat"> <application android:icon="@drawable/icon" android:label="@string/app_name" android:taskAffinity=".mMathuratActivity"> <activity android:name=".mMathuratActivity" android:label="@string/app_name" android:screenOrientation="portrait"> <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity> <activity android:name=".Aboutus" class=".Aboutus" android:label="Mengenai kami..." android:screenOrientation="portrait"> </activity> <activity android:name=".Berterusan" class=".Berterusan" android:label="Mod pemanduan..." android:screenOrientation="portrait"> </activity> </application> <uses-sdk android:minSdkVersion="7" /> <receiver android:name=".DetectIncomingCall"> <intent-filter> <action android:name="android.intent.action.PHONE_STATE" /> </intent-filter> </receiver> <uses-permission android:name="android.permission.READ_PHONE_STATE" /> <uses-permission android:name="android.permission.INTERNET" /> <uses-permission android:name="android.permission.VIBRATE"></uses-permission> </manifest> 6/22/2012 http://blog.kerul.net 26
  • 27. DEMO  Demo 0: The IDE (Eclipse + ADT)  Demo 1: Creating a new Android Project (and the project structure).  Demo 2: Widgets and interaction – Textbox and Button.  Demo 3: HTML and WebView  Demo 4: APK and Distribution 6/22/2012 http://blog.kerul.net 27
  • 28. TQvm Q&A 6/22/2012 http://blog.kerul.net 28