SlideShare une entreprise Scribd logo
1  sur  23
Burak Aydın
Ankara Üniversitesi – Böte III

  burakaydin.net.tr
mail@burakaydin.net.tr


                                 1/23
Ajanda


●
 GDG Ankara
●
 Android
●
 Android Uygulama Yapısı
●
 Android Uygulama Bileşenleri
●
 Nereden başlamalı?
●
 Hello World!




                                   2/23
GDG Ankara
         gdgankara.org


●
  Gönüllülük
●
  Yapabileceğimizi göstermek
●
  Özveri




                               3/23
Android
Temmuz 2005




                  4/23
Android



●
 Açık kaynak kodlu
●
 Linux tabanlı
●
 OHA
●
 Mobil cihazlar(?) için işletim sistemi




                                          5/23
Android Versiyonları




                6/23
Pazar Payı




http://venturebeat.com/2013/01/28/android-captured-almost-70-global-smartphone-market-share-in-2012-apple-just-under-20/




                                                                                                               7/23
Google Play




        8/23
Android Mimarisi




             9/23
Uygulama Yapısı
├── assets
├── bin
├── libs
├── res
│ ├── drawable-hdpi
│ ├── drawable-ldpi
│ ├── drawable-mdpi
│ ├── drawable-xhdpi
│ ├── layout
│ ├── menu
│ └── values
└── src
  └── com
    └── example
       └── deneme
                             10/23
Manifest.xml
<manifest
xmlns:android="http://schemas.android.com/apk/res/android"
    package="org.gdgankara.ornek"
    android:versionCode="1"
    android:versionName="1.0" >

    <uses-sdk
        android:minSdkVersion="8"
        android:targetSdkVersion="15" />

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

    <application
        android:icon="@drawable/ic_launcher"
        android:label="@string/app_name"
        android:theme="@style/AppTheme" >
        <activity
            android:name=".LoginActivity"
            android:label="@string/title_activity_login" >
            <intent-filter>
                 <action
android:name="android.intent.action.MAIN" />

                <category
android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
    </application>

</manifest>

                                                             11/23
Activity
<activity
    android:name=".OrnekActivity">
      <intent-filter>
         <action android:name="android.intent.action.MAIN" />
         <category
android:name="android.intent.category.LAUNCHER" />
       </intent-filter>
</activity>
         Twitter            Facebook               Gmail




                                                                12/23
Intent & Intent Filter
Niyet ettim...




startActivity(new Intent(getApplicationContext(), Activity2.class));


<activity
   android:name=".OrnekActivity">
     <intent-filter>
       <action
          android:name="android.intent.action.VIEW"/>
      </intent-filter>
</activity>

                                                               13/23
Service

<manifest>
  <application>
      <service android:name=".OrnekService" />
  </application>
</manifest>




●
  Arka planda çalışır.
●
  Multi-tasking özelliğini kullanır.



                                            14/23
Content Provider
<manifest>
    <application>
        <provider
             android:name=".contentprovider.MyTodoContentProvider"
    android:authorities="org.ankara.android.todos.contentprovider">
        </provider>
    </application>
</manifest>




●
  İçerik paylaşımı
●
  Kişi listesine erişim



                                                             15/23
Broadcast Receiver
<manifest>
    <application>
        <receiver android:name="OrnekReceiver" >
            <intent-filter>
                <action android:name="android.intent.action.VIEW" />
            </intent-filter>
        </receiver>
    </application>
</manifest>




    ●
      Telefon açıldığında
    ●
      Sms geldiğinde
    ●
      Pil azaldığında...



                                                              16/23
Permissions
<manifest>
    <uses-permission android:name="android.permission.INTERNET" />
    <uses-permission android:name="android.permission.VIBRATE" />
    ...
</manifest>




                                                            17/23
Layouts & Views
●
  RelativeLayout    ●
                     GridView
●
  LinearLayout      ●
                     ListView
●
  GridLayout        ●
                     ImageView
●
  TableLayout       ●
                     WebView
●
  FrameLayout       ●
                     TextView
                    ●
                     Button
                    ●
                     Checkbox
                    ●
                     ProgressBar
                    ●
                     RadioButton
                    ●
                     Dialogs


                                   18/23
R.java
activity_ornek.xml
<EditText
    android:id="@+id/edKullaniciAdi"
    android:layout_width="0dp"
    android:layout_height="wrap_content"
    android:layout_weight="1">
</EditText>
<EditText
    android:id="@+id/edSifre"
    android:layout_width="0dp"
    android:layout_height="wrap_content"
    android:layout_weight="1"/>



OrnekActivity.java
txtKullaniciAdi = (TextView) findViewById(R.id.txtKullaniciAdi);
       txtSifre = (TextView) findViewById(R.id.txtSifre);




                                                           19/23
Nereden başlıyoruz?
  Eclipse + Android Development Tool



JDK 7
http://developer.android.com/sdk




http://developer.android.com/training

                                        20/23
21/23
Android Geliştirici Günleri




     androiddeveloperdays.com
     androidgelistiricigunleri.com



                                     22/23
Teşekkürler...

         Burak Aydın
   Ankara Üniversitesi – Böte III

    burakaydin.net.tr
  mail@burakaydin.net.tr


                                    23/23

Contenu connexe

Similaire à Android Sunumu

Lecture #1 Creating your first android project
Lecture #1  Creating your first android projectLecture #1  Creating your first android project
Lecture #1 Creating your first android projectVitali Pekelis
 
Multi Window in Android N
Multi Window in Android NMulti Window in Android N
Multi Window in Android NTaeho Kim
 
Android app development basics
Android app development basicsAndroid app development basics
Android app development basicsAnton Narusberg
 
Android Components & Manifest
Android Components & ManifestAndroid Components & Manifest
Android Components & Manifestma-polimi
 
A journey through android development
A journey through android developmentA journey through android development
A journey through android developmentraditya gumay
 
Beginning Native Android Apps
Beginning Native Android AppsBeginning Native Android Apps
Beginning Native Android AppsGil Irizarry
 
Google Cloud Messaging
Google Cloud MessagingGoogle Cloud Messaging
Google Cloud MessagingAshiq Uz Zoha
 
rssfeeds.classpathrssfeeds.project rssfeed .docx
rssfeeds.classpathrssfeeds.project  rssfeed  .docxrssfeeds.classpathrssfeeds.project  rssfeed  .docx
rssfeeds.classpathrssfeeds.project rssfeed .docxjoellemurphey
 
android level 3
android level 3android level 3
android level 3DevMix
 
7 Ways to improve your gradle build
7 Ways to improve your gradle build7 Ways to improve your gradle build
7 Ways to improve your gradle buildTania Pinheiro
 
Delegating user tasks in applications
Delegating user tasks in applicationsDelegating user tasks in applications
Delegating user tasks in applicationsFriedger Müffke
 
Android App Development - 01 Introduction
Android App Development - 01 IntroductionAndroid App Development - 01 Introduction
Android App Development - 01 IntroductionDiego Grancini
 

Similaire à Android Sunumu (20)

Lecture #1 Creating your first android project
Lecture #1  Creating your first android projectLecture #1  Creating your first android project
Lecture #1 Creating your first android project
 
Multi Window in Android N
Multi Window in Android NMulti Window in Android N
Multi Window in Android N
 
Android app development basics
Android app development basicsAndroid app development basics
Android app development basics
 
Android Components & Manifest
Android Components & ManifestAndroid Components & Manifest
Android Components & Manifest
 
A journey through android development
A journey through android developmentA journey through android development
A journey through android development
 
Ruby conf2012
Ruby conf2012Ruby conf2012
Ruby conf2012
 
Android Made Simple
Android Made SimpleAndroid Made Simple
Android Made Simple
 
Beginning Native Android Apps
Beginning Native Android AppsBeginning Native Android Apps
Beginning Native Android Apps
 
Hierarchy viewer
Hierarchy viewerHierarchy viewer
Hierarchy viewer
 
Google Cloud Messaging
Google Cloud MessagingGoogle Cloud Messaging
Google Cloud Messaging
 
Permissions
PermissionsPermissions
Permissions
 
Android classes in mumbai
Android classes in mumbaiAndroid classes in mumbai
Android classes in mumbai
 
rssfeeds.classpathrssfeeds.project rssfeed .docx
rssfeeds.classpathrssfeeds.project  rssfeed  .docxrssfeeds.classpathrssfeeds.project  rssfeed  .docx
rssfeeds.classpathrssfeeds.project rssfeed .docx
 
android level 3
android level 3android level 3
android level 3
 
Android JET Navigation
Android JET NavigationAndroid JET Navigation
Android JET Navigation
 
Android session 2
Android session 2Android session 2
Android session 2
 
7 Ways to improve your gradle build
7 Ways to improve your gradle build7 Ways to improve your gradle build
7 Ways to improve your gradle build
 
Delegating user tasks in applications
Delegating user tasks in applicationsDelegating user tasks in applications
Delegating user tasks in applications
 
Android App Development - 01 Introduction
Android App Development - 01 IntroductionAndroid App Development - 01 Introduction
Android App Development - 01 Introduction
 
Ch2 first app
Ch2 first appCh2 first app
Ch2 first app
 

Android Sunumu

  • 1. Burak Aydın Ankara Üniversitesi – Böte III burakaydin.net.tr mail@burakaydin.net.tr 1/23
  • 2. Ajanda ● GDG Ankara ● Android ● Android Uygulama Yapısı ● Android Uygulama Bileşenleri ● Nereden başlamalı? ● Hello World! 2/23
  • 3. GDG Ankara gdgankara.org ● Gönüllülük ● Yapabileceğimizi göstermek ● Özveri 3/23
  • 5. Android ● Açık kaynak kodlu ● Linux tabanlı ● OHA ● Mobil cihazlar(?) için işletim sistemi 5/23
  • 8. Google Play 8/23
  • 10. Uygulama Yapısı ├── assets ├── bin ├── libs ├── res │ ├── drawable-hdpi │ ├── drawable-ldpi │ ├── drawable-mdpi │ ├── drawable-xhdpi │ ├── layout │ ├── menu │ └── values └── src └── com └── example └── deneme 10/23
  • 11. Manifest.xml <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="org.gdgankara.ornek" android:versionCode="1" android:versionName="1.0" > <uses-sdk android:minSdkVersion="8" android:targetSdkVersion="15" /> <uses-permission android:name="android.permission.INTERNET" /> <application android:icon="@drawable/ic_launcher" android:label="@string/app_name" android:theme="@style/AppTheme" > <activity android:name=".LoginActivity" android:label="@string/title_activity_login" > <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity> </application> </manifest> 11/23
  • 12. Activity <activity android:name=".OrnekActivity"> <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity> Twitter Facebook Gmail 12/23
  • 13. Intent & Intent Filter Niyet ettim... startActivity(new Intent(getApplicationContext(), Activity2.class)); <activity android:name=".OrnekActivity"> <intent-filter> <action android:name="android.intent.action.VIEW"/> </intent-filter> </activity> 13/23
  • 14. Service <manifest> <application> <service android:name=".OrnekService" /> </application> </manifest> ● Arka planda çalışır. ● Multi-tasking özelliğini kullanır. 14/23
  • 15. Content Provider <manifest> <application> <provider android:name=".contentprovider.MyTodoContentProvider" android:authorities="org.ankara.android.todos.contentprovider"> </provider> </application> </manifest> ● İçerik paylaşımı ● Kişi listesine erişim 15/23
  • 16. Broadcast Receiver <manifest> <application> <receiver android:name="OrnekReceiver" > <intent-filter> <action android:name="android.intent.action.VIEW" /> </intent-filter> </receiver> </application> </manifest> ● Telefon açıldığında ● Sms geldiğinde ● Pil azaldığında... 16/23
  • 17. Permissions <manifest> <uses-permission android:name="android.permission.INTERNET" /> <uses-permission android:name="android.permission.VIBRATE" /> ... </manifest> 17/23
  • 18. Layouts & Views ● RelativeLayout ● GridView ● LinearLayout ● ListView ● GridLayout ● ImageView ● TableLayout ● WebView ● FrameLayout ● TextView ● Button ● Checkbox ● ProgressBar ● RadioButton ● Dialogs 18/23
  • 19. R.java activity_ornek.xml <EditText android:id="@+id/edKullaniciAdi" android:layout_width="0dp" android:layout_height="wrap_content" android:layout_weight="1"> </EditText> <EditText android:id="@+id/edSifre" android:layout_width="0dp" android:layout_height="wrap_content" android:layout_weight="1"/> OrnekActivity.java txtKullaniciAdi = (TextView) findViewById(R.id.txtKullaniciAdi); txtSifre = (TextView) findViewById(R.id.txtSifre); 19/23
  • 20. Nereden başlıyoruz? Eclipse + Android Development Tool JDK 7 http://developer.android.com/sdk http://developer.android.com/training 20/23
  • 21. 21/23
  • 22. Android Geliştirici Günleri androiddeveloperdays.com androidgelistiricigunleri.com 22/23
  • 23. Teşekkürler... Burak Aydın Ankara Üniversitesi – Böte III burakaydin.net.tr mail@burakaydin.net.tr 23/23