Działający kod, który pokazuje, jak używać języka Kotlin w aplikacjach na Androida.
Wyróżnione
Teraz na Androidzie to w pełni funkcjonalna aplikacja opracowana przy użyciu narzędzi Kotlin i Jetpack Compose. Jest to przykład sprawdzonych metod projektowania i programowania Androida. Została zaprojektowana z myślą o przydatnym pliku referencyjnym dla deweloperów.

Filtruj według

Poziom

A sample that demonstrates to use registered fingerprints to authenticate the user in your app

  • FingerprintManager
  • AuthenticationCallback
  • CryptoObject
  • KeyGenParameterSpec
  • KeyStore
  • Cipher
  • KeyGenerator
  • Zabezpieczenia
  • Bezpieczeństwo i prywatność na Androidzie
  • Kotlin
Średnio zaawansowany

Sample for the Androidx Biometrics Library

  • BiometricManager
  • BiometricPrompt
  • Zabezpieczenia
  • Bezpieczeństwo i prywatność na Androidzie
  • Kotlin
Średnio zaawansowany

This sample demonstrates how to use CardView introduced in the support library in Android 5.0.

  • Widoki interfejsu Androida
  • Kotlin

This sample demonstrates how to use the ContentProvider with paging support introduced in Android O. The ContentProvider now accepts additional arguments for the offset and the limit in the query method to support paging instead of fetching all the

  • ContentProvider
  • DocumentsProvider
  • Miejsce na dane w Androidzie
  • Storage
  • Java
Średnio zaawansowany

This sample demonstrates how to use the Downloadable Fonts feature introduced in Android O. Downloadable Fonts is a feature that allows apps to request a certain font from a provider instead of bundling it or downloading it themselves. This means,

  • FontRequest
  • FontRequest
  • FontsContractCompat
  • FontsContractCompat
  • Widoki interfejsu Androida
  • Interfejs
  • Kotlin
Średnio zaawansowany

⚠️⚠️⚠️ Caution: the androidx.emoji:emoji library is deprecated in favor of androidx.emoji2:emoji2, which provides integration into androidx.appcompat. To support modern emoji and simplify backward-compatibility with lower versions of Android, it's

  • EmojiCompat
  • BundledEmojiCompatConfig
  • FontRequestEmojiCompatConfig
  • FontRequest
  • EmojiAppCompatTextView
  • EmojiAppCompatEditText
  • EmojiAppCompatButton
  • EmojiTextViewHelper
  • Widoki interfejsu Androida
  • Interfejs
  • Kotlin
Średnio zaawansowany

This sample demonstrates the use of the multi-window API available in Android N. It shows the use of new Intent flags and AndroidManifest properties to define the multi-window behavior. Switch the sample app into multi-window mode to see how it

  • Intent
  • ActivityOptions
  • Widoki interfejsu Androida
  • Java
Średnio zaawansowany

This sample demonstrates how to display PDF document on screen using the PdfRenderer introduced in Android 5.0 Lollipop.

  • PdfRenderer
  • Grafika
  • Grafika na Androida
  • Kotlin
Początkujący

This sample demonstrates basic usage of Picture-in-Picture mode for handheld devices. The sample plays a video. The video keeps on playing when the app is turned in to Picture-in-Picture mode. On Picture-in-Picture screen, the app shows an action

  • PictureInPictureParams
  • RemoteAction
  • PendingIntent
  • MediaSessionCompat
  • Aparat i multimedia na Androidzie
  • Multimedia
  • Kotlin
Zaawansowany

Demonstrates connecting to the Car API and listening for gear change events. Works on Android P (API 28) and above. Introduction This app allows a user to see the current gear on the main infotainment screen (IVI). The app connects to the Car API and

  • car
  • Car
  • CarPropertyManager
  • Urządzenia z Androidem
  • Kotlin
Średnio zaawansowany

If you are new to unit testing on Android, try this sample first. This project uses the Gradle build system and the Android gradle plugin support for unit testing. You can either benefit from IDEs integration such as Android studio or run the tests

  • Architektura Androida
  • Kotlin
Początkujący

This Android sample app demonstrates how to use state-of-the-art generative AI models (like Gemini) to build AI-powered features and applications. To try out this sample app, you need to use latest stable version of Android Studio. However, if you

  • Composable
  • Układy w Jetpack Compose
  • Kotlin
Średnio zaawansowany

Demonstrates retrieving location updates in the background. Introduction This app allows a user to receive location updates in the background via a PendingIntent. If you are just interested in seeing the code that subscribes to a location request,

  • FusedLocationProviderClient
  • LocationRequest
  • LocationServices
  • Czujniki
  • Kotlin
Średnio zaawansowany

Learn how this app was designed and built in the design case study, architecture learning journey and modularization learning journey. This is the repository for the Now in Android app. It is a work in progress 🚧. Now in Android is a fully functional

  • Architektura i stan w Jetpack Compose
  • Warstwa domeny w architekturze Androida
  • Ułatwienia dostępu w Jetpack Compose
  • Warstwa danych w architekturze Androida
  • Warstwa interfejsu w architekturze Androida
  • Animacja w Jetpack Compose
  • Testowanie w Jetpack Compose
  • Produkcja stanu w interfejsie Androida
  • Architektura Androida
  • Nawigacja w Jetpack Compose
  • Zmienne stanów interfejsu Androida
  • Testowanie w Androidzie
  • Systemy projektowania w Jetpack Compose
  • Kotlin
Zaawansowany

This sample shows how to style text on Android using spans, in Kotlin, using Android KTX.

  • SpannableStringBuilder
  • Spanned
  • SpannedString
  • StyleSpan
  • RelativeSizeSpan
  • MetricAffectingSpan
  • Widoki interfejsu Androida
  • Interfejs
  • Java
Początkujący

Android AutofillFramework Sample (Kotlin) This sample demonstrates the use of the Autofill Framework. It includes implementations of client Activities with views that should be autofilled, and a Service that can provide autofill data to client

  • View
  • AutoFillService
  • AutoFillManager
  • Widoki interfejsu Androida
  • Kotlin
Zaawansowany