Skip to content

Commit

Permalink
GitBook: [master] 10 pages and 36 assets modified
Browse files Browse the repository at this point in the history
  • Loading branch information
yemreak authored and gitbook-bot committed Dec 10, 2019
1 parent 32631f1 commit b1160e9
Show file tree
Hide file tree
Showing 46 changed files with 67 additions and 26 deletions.
Binary file modified .gitbook/assets/image (10).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified .gitbook/assets/image (11).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified .gitbook/assets/image (12).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified .gitbook/assets/image (13).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified .gitbook/assets/image (14).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified .gitbook/assets/image (15).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified .gitbook/assets/image (16).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified .gitbook/assets/image (17).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified .gitbook/assets/image (18).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified .gitbook/assets/image (19).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified .gitbook/assets/image (20).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified .gitbook/assets/image (21).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified .gitbook/assets/image (22).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified .gitbook/assets/image (23).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified .gitbook/assets/image (24).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified .gitbook/assets/image (25).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified .gitbook/assets/image (26).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified .gitbook/assets/image (27).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified .gitbook/assets/image (28).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified .gitbook/assets/image (29).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified .gitbook/assets/image (30).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified .gitbook/assets/image (31).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified .gitbook/assets/image (32).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified .gitbook/assets/image (33).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified .gitbook/assets/image (34).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified .gitbook/assets/image (35).png
Binary file modified .gitbook/assets/image (36).png
Binary file modified .gitbook/assets/image (37).png
Binary file modified .gitbook/assets/image (38).png
Binary file modified .gitbook/assets/image (39).png
Binary file added .gitbook/assets/image (40).png
Binary file added .gitbook/assets/image (41).png
Binary file modified .gitbook/assets/image (6).png
Binary file modified .gitbook/assets/image (7).png
Binary file modified .gitbook/assets/image (8).png
Binary file modified .gitbook/assets/image (9).png
2 changes: 1 addition & 1 deletion faydali-bilgiler/activity-oernekleri.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ startActivity(intent)

{% tabs %}
{% tab title="⭐ Örnek" %}
![](../.gitbook/assets/image%20%2839%29.png)
![](../.gitbook/assets/image%20%2841%29.png)
{% endtab %}

{% tab title="Manifest" %}
Expand Down
8 changes: 4 additions & 4 deletions faydali-bilgiler/proje-islemleri.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@
* Son olarak; Manifestimize girip "package name"i güncelliyoruz.
* Artık başarıyla "package name"i güncellemiş olduk. Emin olmak için projenizi Build etmeyi unutmayın :\)

![](../.gitbook/assets/image%20%2826%29.png)

![](../.gitbook/assets/image%20%2828%29.png)

![](../.gitbook/assets/image%20%2821%29.png)
![](../.gitbook/assets/image%20%2830%29.png)

![](../.gitbook/assets/image%20%2823%29.png)

![](../.gitbook/assets/image%20%2825%29.png)
![](../.gitbook/assets/image%20%2827%29.png)

2 changes: 1 addition & 1 deletion temel-kavramlar/activity-ve-intentler.md
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ public void onActivityResult(int requestCode, int resultCode, Intent data) {

### Back navigation, tasks, and the back stack

![](../.gitbook/assets/image%20%288%29.png)
![](../.gitbook/assets/image%20%289%29.png)

### Implement Up navigation with a parent Activity

Expand Down
2 changes: 1 addition & 1 deletion temel-kavramlar/activity-yasam-doenguesue.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## 🔄 Activity Yaşam Döngüsü

![](../.gitbook/assets/image%20%2837%29.png)
![](../.gitbook/assets/image%20%2839%29.png)

## 🧱 Metot Prototipi

Expand Down
4 changes: 2 additions & 2 deletions temel-kavramlar/androidde-animasyonlar.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

{% tabs %}
{% tab title="⭐ Görsel" %}
![](../.gitbook/assets/image%20%2816%29.png)
![](../.gitbook/assets/image%20%2818%29.png)
{% endtab %}

{% tab title="📜 XML Kodları" %}
Expand Down Expand Up @@ -42,7 +42,7 @@ class MainActivity : AppCompatActivity() {

{% tabs %}
{% tab title="⭐ Görsel" %}
![](../.gitbook/assets/image%20%2817%29.png)
![](../.gitbook/assets/image%20%2819%29.png)
{% endtab %}

{% tab title="📜 XML Kodları" %}
Expand Down
2 changes: 1 addition & 1 deletion temel-kavramlar/arkaplanda-calisma/foreground-service.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ public class TelemetryService extends Service {
* Uygulama üzerindeki tüm bildirimleri susturmak yerine, belli başlı kategorileri susturma avantajı sağlar
* Kategorilere göre bildirim şekillerini düzenlemeye yardımcı olur

![](../../.gitbook/assets/image%20%2822%29.png)
![](../../.gitbook/assets/image%20%2824%29.png)

```java
public class TelemetryService extends Service {
Expand Down
8 changes: 4 additions & 4 deletions temel-kavramlar/asynctask-ve-asynctaskloader.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Android'teki tüm görüntü işlemlerinin yapıldı alandır.
* UI Thread sadece görsel işlemler için kullanılmalıdır
* Tüm işlemler 16ms'den kısa bir sürede tamamlanmalıdır

![](../.gitbook/assets/image%20%2830%29.png)
![](../.gitbook/assets/image%20%2832%29.png)

{% hint style="danger" %}
Yaklaşık olarak 5s'den uzun süren işlemler "[application not responding](http://developer.android.com/guide/practices/responsiveness.html)" \(ANR\) diyaloğunu oluşturur ve kullanıcı bunu görmesi durumunda uygulamayı kapatıp, siler 😥
Expand All @@ -50,9 +50,9 @@ Verilen işlemi arkaplanda, sistemi bloklamadan tamamlar.

{% tabs %}
{% tab title="🎈 Kullanım" %}
![](../.gitbook/assets/image%20%2823%29.png)
![](../.gitbook/assets/image%20%2825%29.png)

![](../.gitbook/assets/image%20%2819%29.png)
![](../.gitbook/assets/image%20%2821%29.png)

| 💠 Metot | 📜 Açıklama |
| :--- | :--- |
Expand All @@ -75,7 +75,7 @@ public class MyAsyncTask extends AsyncTask <String, Void, Bitmap>{}
* `Void` yapısı, `publishProgress` ve `onProgressUpdate` metotlarının kullanılmayacağını belirtir
* `Bitmap` tipi de, `onPostExecute` ile aktarılan işlem sonucunun tipini belirtir

![](../.gitbook/assets/image%20%2811%29.png)
![](../.gitbook/assets/image%20%2812%29.png)

{% hint style="warning" %}
Son iki parametre \(`Void` ve `Bitmap`\) dışarıdan verilmez, sınıf içi parametrelerdir
Expand Down
10 changes: 5 additions & 5 deletions temel-kavramlar/component-isimleri.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,21 +19,21 @@ In the figure above:

## 🍢 Seek Bar

![](../.gitbook/assets/image%20%2814%29.png)
![](../.gitbook/assets/image%20%2816%29.png)

## ⚫ Progress Bar

![](../.gitbook/assets/image%20%2824%29.png)
![](../.gitbook/assets/image%20%2826%29.png)

## 🔀 Navigation Bar

![](../.gitbook/assets/image%20%2832%29.png)
![](../.gitbook/assets/image%20%2834%29.png)

## 🕎 Navigation View

![](../.gitbook/assets/image%20%2810%29.png)
![](../.gitbook/assets/image%20%2811%29.png)

## 💬 Alert Dialog

![](../.gitbook/assets/image%20%2834%29.png)
![](../.gitbook/assets/image%20%2836%29.png)

6 changes: 3 additions & 3 deletions temel-kavramlar/implicit-intents.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@
* Diğer uygulamalara istekte bulunmayı sağlar
* [✅ App Chooser](implicit-intents.md#app-chooser) adı verilen yapı ile kullanıcıya seçim hakkı tanınır

![](../.gitbook/assets/image%20%289%29.png)
![](../.gitbook/assets/image%20%2810%29.png)

## ✅ App Chooser

![](../.gitbook/assets/image%20%2820%29.png)
![](../.gitbook/assets/image%20%2822%29.png)

##

Expand Down Expand Up @@ -131,7 +131,7 @@ ShareCompat.IntentBuilder
Bu yapı **Android Launch Modes** ile değiştirilebilmektedir.
{% endhint %}

![](../.gitbook/assets/image%20%286%29.png)
![](../.gitbook/assets/image%20%287%29.png)

![](../.gitbook/assets/image%20%281%29.png)

Expand Down
49 changes: 45 additions & 4 deletions temel-kavramlar/room-database.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ description: Android üzerinde SQLite yerine üretilmiş yeni db formatı

## 🧱 Temel Yapı

![](../.gitbook/assets/image%20%2836%29.png)
![](../.gitbook/assets/image%20%2838%29.png)

## ⭐ Entity Yapısı

* 🧱 DB'ye aktarılacak sütun isimlerini temsil ederler
* 🏷️ [Annotation](https://www.geeksforgeeks.org/annotations-in-java/) yapısı ile özellikleri belirlenir
* 👮‍♂️ **Primary key** ve **Entity** etiketini eklemek zorunludur

![](../.gitbook/assets/image%20%287%29.png)
![](../.gitbook/assets/image%20%288%29.png)

```java
@Entity(tableName = "person_database")
Expand Down Expand Up @@ -44,7 +44,7 @@ public class Person {
* 🏷️ SQL query metinleri metotlara Annotation yapısı ile tanımlanır
* ✨ LiveData yapısı ile güncel verileri döndürür

![](../.gitbook/assets/image%20%2813%29.png)
![](../.gitbook/assets/image%20%2815%29.png)

```java
@Dao
Expand Down Expand Up @@ -78,6 +78,47 @@ public interface WordDao {
👀 Daha fazlası için [The DAO \(data access object\)](https://google-developer-training.github.io/android-developer-fundamentals-course-concepts-v2/unit-4-saving-user-data/lesson-10-storing-data-with-room/10-1-c-room-livedata-viewmodel/10-1-c-room-livedata-viewmodel.html#dao) dokümanına bakabilirsin.
{% endhint %}

## 🗂️ Room Database

* 🧱 Abstract olmak zorundadır
* 🏗️ `Room.databaseBuilder(...)` yapısı ile db tanımlanır
* 🏷️ Database etiketi içerisinde
* `entities`alanında tablo verilerini temsil eden Entity Class'ınızın objesi verilir
* `version` alanında db'nin en son sürümünü belirtin
* 🐛 Versiyon geçişleri arasındaki sorunları engellemek için `fallbackToDestructiveMigration()` özelliği eklenir

![](../.gitbook/assets/image%20%286%29.png)

```java
@Database(entities = {Word.class}, version = 1)
public abstract class WordRoomDatabase extends RoomDatabase {

public abstract WordDao wordDao();

private static WordRoomDatabase INSTANCE;

static WordRoomDatabase getDatabase(final Context context) {
if (INSTANCE == null) {
synchronized (WordRoomDatabase.class) {
if (INSTANCE == null) {
INSTANCE = Room.databaseBuilder(context.getApplicationContext(),
WordRoomDatabase.class, "word_database")
// Wipes and rebuilds instead of migrating
// if no Migration object.
.fallbackToDestructiveMigration()
.build();
}
}
}
return INSTANCE;
}
}
```

{% hint style="info" %}
👀 Daha fazlası için [Room database](https://google-developer-training.github.io/android-developer-fundamentals-course-concepts-v2/unit-4-saving-user-data/lesson-10-storing-data-with-room/10-1-c-room-livedata-viewmodel/10-1-c-room-livedata-viewmodel.html#room) dokümanına bakabilirsin.
{% endhint %}

### 👮‍♂️ DB'yi Koruma

* ‍🚫 Veri tabanına birden çok istek gelmesini engeller
Expand All @@ -100,7 +141,7 @@ public interface WordDao {
* 🦄 Verilerin aktarımı bir defaya mahsus **Constructor** üzerinde yapılır
* 🌠 Verilerin aktarılması **asenkron** olması gerektiğinden [AsyncTask](asynctask-ve-asynctaskloader.md) yapısı kullanılır

![](../.gitbook/assets/image%20%2833%29.png)
![](../.gitbook/assets/image%20%2835%29.png)

```java
public class WordRepository {
Expand Down

0 comments on commit b1160e9

Please sign in to comment.