# Android Networking Avancé (Android) > OkHttp Interceptors, Authentication, Cache, Certificate Pinning, WebSocket, GraphQL avec Apollo Client - 13 questions d'entretien - Confirmé - [Questions d'entretien: Android](https://sharpskill.dev/fr/technologies/android/questions-entretien.md) ## 1. Qu'est-ce qu'un Interceptor dans OkHttp ? **Réponse** Un Interceptor est un mécanisme puissant d'OkHttp qui permet d'intercepter, observer et modifier les requêtes et réponses HTTP. Il s'exécute entre l'application et le réseau, permettant d'ajouter des headers, logger, gérer l'authentification, etc. ## 2. Comment ajouter un Interceptor à un OkHttpClient ? **Réponse** On utilise le builder d'OkHttpClient avec la méthode addInterceptor() pour les interceptors applicatifs ou addNetworkInterceptor() pour les interceptors réseau. Les interceptors sont exécutés dans l'ordre où ils sont ajoutés. ## 3. À quoi sert un Logging Interceptor ? **Réponse** Le Logging Interceptor (HttpLoggingInterceptor) permet de logger toutes les requêtes et réponses HTTP pour le debugging. On peut configurer le niveau de log : NONE, BASIC (ligne de requête), HEADERS (avec headers), BODY (avec body complet). ## 10 questions supplémentaires disponibles - Comment créer un Authentication Interceptor pour ajouter un token Bearer ? - Comment ajouter un header personnalisé à toutes les requêtes avec un Interceptor ? S'inscrire gratuitement: https://sharpskill.dev/fr/login ## Autres sujets d'entretien Android - [Fondamentaux Android](https://sharpskill.dev/fr/technologies/android/questions-entretien/android-fundamentals.md): 24 questions, Junior - [UI et Ressources Android](https://sharpskill.dev/fr/technologies/android/questions-entretien/android-ui-and-resources.md): 30 questions, Junior - [Cycle de Vie Android](https://sharpskill.dev/fr/technologies/android/questions-entretien/android-lifecycle.md): 30 questions, Junior - [Navigation Android](https://sharpskill.dev/fr/technologies/android/questions-entretien/android-navigation.md): 26 questions, Junior - [Gestion des Données Android](https://sharpskill.dev/fr/technologies/android/questions-entretien/android-data-management.md): 29 questions, Junior - [Réseau Android](https://sharpskill.dev/fr/technologies/android/questions-entretien/android-networking.md): 29 questions, Junior - [Tests Android](https://sharpskill.dev/fr/technologies/android/questions-entretien/android-testing.md): 28 questions, Junior - [Gradle Android](https://sharpskill.dev/fr/technologies/android/questions-entretien/android-gradle.md): 26 questions, Junior - [Bases de Kotlin pour Android](https://sharpskill.dev/fr/technologies/android/questions-entretien/android-kotlin-language-essentials.md): 24 questions, Junior - [Room Database](https://sharpskill.dev/fr/technologies/android/questions-entretien/android-room-database.md): 25 questions, Confirmé - [Android Background Tasks](https://sharpskill.dev/fr/technologies/android/questions-entretien/android-background-work.md): 18 questions, Confirmé - [Jetpack Compose](https://sharpskill.dev/fr/technologies/android/questions-entretien/android-compose.md): 28 questions, Confirmé - [Android Permissions & Device](https://sharpskill.dev/fr/technologies/android/questions-entretien/android-permissions-and-device.md): 21 questions, Confirmé - [Firebase pour Android](https://sharpskill.dev/fr/technologies/android/questions-entretien/android-firebase.md): 23 questions, Confirmé - [Android MVVM Architecture](https://sharpskill.dev/fr/technologies/android/questions-entretien/android-mvvm-architecture.md): 18 questions, Confirmé - [Collections et Opérateurs Kotlin](https://sharpskill.dev/fr/technologies/android/questions-entretien/android-kotlin-collections-operators.md): 20 questions, Confirmé - [Kotlin Coroutines et Flow](https://sharpskill.dev/fr/technologies/android/questions-entretien/android-kotlin-coroutines-flow.md): 20 questions, Confirmé - [Injection de Dépendances Android](https://sharpskill.dev/fr/technologies/android/questions-entretien/android-dependency-injection.md): 15 questions, Confirmé - [Android MVI Architecture](https://sharpskill.dev/fr/technologies/android/questions-entretien/android-mvi-architecture.md): 17 questions, Confirmé - [Android Clean Architecture](https://sharpskill.dev/fr/technologies/android/questions-entretien/android-clean-architecture.md): 21 questions, Senior - [Android Compose Advanced](https://sharpskill.dev/fr/technologies/android/questions-entretien/android-compose-advanced.md): 17 questions, Senior - [Android Performance and Monitoring](https://sharpskill.dev/fr/technologies/android/questions-entretien/android-performance-monitoring.md): 13 questions, Senior - [Android Security and Privacy](https://sharpskill.dev/fr/technologies/android/questions-entretien/android-security-privacy.md): 18 questions, Senior - [Android CI/CD and Release](https://sharpskill.dev/fr/technologies/android/questions-entretien/android-cicd-release.md): 15 questions, Senior - [Android UX and Form Factors](https://sharpskill.dev/fr/technologies/android/questions-entretien/android-ux-form-factors.md): 18 questions, Senior - [Android Testing Advanced](https://sharpskill.dev/fr/technologies/android/questions-entretien/android-testing-advanced.md): 18 questions, Senior --- Source: SharpSkill (https://sharpskill.dev), tech interview preparation for your real stack. HTML version of this page: https://sharpskill.dev/fr/technologies/android/questions-entretien/android-networking-advanced