Android Networking
HTTP, REST API, Retrofit, OkHttp, JSON parsing, Network security
1Which permission is needed to access Internet?
Which permission is needed to access Internet?
Risposta
The permission <uses-permission android:name='android.permission.INTERNET' /> must be declared in AndroidManifest.xml. It's a normal permission (not dangerous) that doesn't require runtime request. Without this permission, any network connection attempt will fail with a SecurityException.
2What is Retrofit?
What is Retrofit?
Risposta
Retrofit is a type-safe HTTP client for Android and Java developed by Square. It turns an HTTP API into a Java/Kotlin interface with annotations. Retrofit automatically handles JSON serialization/deserialization, asynchronous requests, and integrates with OkHttp, Coroutines, RxJava. It's Google's recommended solution for network calls.
3What are the main HTTP methods?
What are the main HTTP methods?
Risposta
Main HTTP methods are: GET (retrieve resources), POST (create a resource), PUT (completely update a resource), PATCH (partial update), DELETE (delete a resource), HEAD (retrieve headers only), OPTIONS (communication options). GET and DELETE are idempotent, POST is not.
What is the HTTP GET method used for?
What is the HTTP POST method used for?
+26 domande da colloquio
Altri argomenti di colloquio Android
Android Fundamentals
Android UI and Resources
Android Lifecycle
Android Navigation
Android Data Management
Android Testing
Android Gradle
Kotlin Language Essentials for Android
Room Database
Background Work
Jetpack Compose
Permissions and Device Features
Firebase for Android
Android MVVM Architecture
Advanced Android Networking
Kotlin Collections and Operators
Kotlin Coroutines and Flow
Android Dependency Injection
Android MVI Architecture
Android Clean Architecture
Android Compose Advanced
Android Performance and Monitoring
Android Security and Privacy
Android CI/CD and Release
Android UX and Form Factors
Android Testing Advanced
Padroneggia Android per il tuo prossimo colloquio
Accedi a tutte le domande, flashcards, test tecnici, esercizi di code review e simulatori di colloquio.
Inizia gratis