Skip to content

Commit

Permalink
GitBook: [master] 11 pages and 30 assets modified
Browse files Browse the repository at this point in the history
  • Loading branch information
yemreak authored and gitbook-bot committed Dec 27, 2019
1 parent 52bcad1 commit f24795c
Show file tree
Hide file tree
Showing 41 changed files with 77 additions and 20 deletions.
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
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 (36).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 (37).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 (38).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 (39).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 (40).png
Binary file modified .gitbook/assets/image (41).png
Binary file added .gitbook/assets/image (42).png
Binary file added .gitbook/assets/image (43).png
Binary file added .gitbook/assets/image (44).png
1 change: 1 addition & 0 deletions SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
* [🪐 Servisler](arkaplan/android-servisleri.md)
* [🌞 Foreground Service](arkaplan/foreground-service.md)
* [📶 Haberleşme İşlemleri](haberlesme/README.md)
* [🌍 İnternete Bağlanma](haberlesme/internete-baglanma.md)
* [📶 WiFi P2P](haberlesme/wifi.md)
* [✨ Faydalı Bilgiler](faydali/README.md)
* [🤖 Android Things](faydali/android-things.md)
Expand Down
6 changes: 3 additions & 3 deletions arkaplan/asynctask-ve-asynctaskloader.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,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%2832%29.png)
![](../.gitbook/assets/image%20%2835%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 @@ -56,9 +56,9 @@ Verilen işlemi arkaplanda, sistemi bloklamadan tamamlar.

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

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

| 💠 Metot | 📜 Açıklama |
| :--- | :--- |
Expand Down
2 changes: 1 addition & 1 deletion arkaplan/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%2824%29.png)
![](../.gitbook/assets/image%20%2827%29.png)

```java
public class TelemetryService extends Service {
Expand Down
8 changes: 4 additions & 4 deletions faydali/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%2828%29.png)
![](../.gitbook/assets/image%20%2831%29.png)

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

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

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

2 changes: 1 addition & 1 deletion giris/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%2841%29.png)
![](../.gitbook/assets/image%20%2844%29.png)
{% endtab %}

{% tab title="Manifest" %}
Expand Down
2 changes: 1 addition & 1 deletion giris/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%2839%29.png)
![](../.gitbook/assets/image%20%2842%29.png)

## 🧱 Metot Prototipi

Expand Down
2 changes: 1 addition & 1 deletion giris/implicit-intents.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

## ✅ App Chooser

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

##

Expand Down
56 changes: 56 additions & 0 deletions haberlesme/internete-baglanma.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
# 🌍 İnternete Bağlanma

## ✍ El Notlarım

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

## 👮‍♂️ Gerekli İzinlerin Alınması

* 📃 `AndroidManifest.xml` dosyası üzerinden internet izni alınmalıdır
* 🐣`<uses-permission android:name="android.permission.INTERNET" />` ile internet erişimi
* 🔸 `<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />` ile internet bağlantısı durumu izni alınır

{% hint style="info" %}
‍🧙‍♂ Detaylı bilgi için [Including permissions in the manifest](https://google-developer-training.github.io/android-developer-fundamentals-course-concepts-v2/unit-3-working-in-the-background/lesson-7-background-tasks/7-2-c-internet-connection/7-2-c-internet-connection.html#permissions) dokümanına bakabilirsin
{% endhint %}

## 👨‍💼 Bağlantı Durumunu Yönetme

* 🧰 Tüm sistem servislerine `getSystemService` metodu ile erişilir
* 📶 `ConnectivityManager` ve `NerworkInfo` sınıflarından bağlantı bilgileri yönetilir

```java
private static final String DEBUG_TAG = "NetworkStatusExample";

ConnectivityManager connMgr =
(ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);

NetworkInfo networkInfo = connMgr.getNetworkInfo(ConnectivityManager.TYPE_WIFI);
boolean isWifiConn = networkInfo.isConnected();

networkInfo = connMgr.getNetworkInfo(ConnectivityManager.TYPE_MOBILE);
boolean isMobileConn = networkInfo.isConnected();

Log.d(DEBUG_TAG, "Wifi connected: " + isWifiConn);
Log.d(DEBUG_TAG, "Mobile connected: " + isMobileConn);
```

{% hint style="info" %}
‍🧙‍♂ Detaylı bilgi için [Managing the network state](https://google-developer-training.github.io/android-developer-fundamentals-course-concepts-v2/unit-3-working-in-the-background/lesson-7-background-tasks/7-2-c-internet-connection/7-2-c-internet-connection.html#manage_state) dokümanına bakabilirsin.
{% endhint %}

## ❣️ Dikkat Etmen Gerekenler

* 🕐 Bağlantı işlemleri uzun sürebilir
* 🚫 UI Thread üzerinden yapılmamalıdır, aksi halde uygulamayı engelleyebilir
* 💫 Bağlantı işlemleri [Asenkron İşlemler](../arkaplan/asynctask-ve-asynctaskloader.md) yazısına göre yapılmalıdır

## 👮‍♂️ Güvenlik Notları

* 🐣 Veri tabanına direkt erişim **olmamalı**, API üzerinden erişim olmalı
* 👨‍💻 Reverse Engineering ile bağlantıda kullandığın bilgileri elde edebilirler

## 🔗 Faydalı Kaynaklar

{% embed url="https://google-developer-training.github.io/android-developer-fundamentals-course-concepts-v2/unit-3-working-in-the-background/lesson-7-background-tasks/7-2-c-internet-connection/7-2-c-internet-connection.html" %}

Expand Down
4 changes: 2 additions & 2 deletions temel/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%2818%29.png)
![](../.gitbook/assets/image%20%2820%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%2819%29.png)
![](../.gitbook/assets/image%20%2821%29.png)
{% endtab %}

{% tab title="📜 XML Kodları" %}
Expand Down
8 changes: 4 additions & 4 deletions temel/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%2816%29.png)
![](../.gitbook/assets/image%20%2818%29.png)

## ⚫ Progress Bar

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

## 🔀 Navigation Bar

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

## 🕎 Navigation View

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

## 💬 Alert Dialog

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

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

## 🧱 Temel Yapı

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

## ⭐ Entity Yapısı

Expand Down Expand Up @@ -53,7 +53,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%2815%29.png)
![](../.gitbook/assets/image%20%2817%29.png)

```java
@Dao
Expand Down Expand Up @@ -150,7 +150,7 @@ public abstract class WordRoomDatabase extends RoomDatabase {
* 🦄 Verilerin aktarımı bir defaya mahsus **Constructor** üzerinde yapılır
* 🌠 Verilerin aktarılması **asenkron** olması gerektiğinden [AsyncTask](../arkaplan/asynctask-ve-asynctaskloader.md) yapısı kullanılır

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

```java
public class WordRepository {
Expand Down

0 comments on commit f24795c

Please sign in to comment.