Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions firebase.json
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@
{ "source": "/packages-and-plugins/plugin-api-migration", "destination": "/release/breaking-changes/plugin-api-migration", "type": 301 },
{ "source": "/platform-integration/android/androidx-migration", "destination": "/release/breaking-changes/androidx-migration", "type": 301 },
{ "source": "/platform-integration/android/c-interop", "destination": "/platform-integration/legacy-ffi-plugin", "type": 301 },
{ "source": "/platform-integration/android/call-jetpack-apis", "destination": "/platform-integration/android/jnigen", "type": 301},
{ "source": "/platform-integration/android/install-android", "destination": "/platform-integration/android/setup", "type": 301 },
{ "source": "/platform-integration/android/install-android/:rest*", "destination": "/platform-integration/android/setup", "type": 301 },
{ "source": "/platform-integration/android/splash-screen-migration", "destination": "/release/breaking-changes/splash-screen-migration", "type": 301 },
Expand Down
4 changes: 4 additions & 0 deletions site/web/assets/images/android/jni-call-lifecycle-dark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions site/web/assets/images/android/jni-call-lifecycle-light.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---
title: "Calling Android APIs"
description: "How to call Android-specific APIs or native libraries from Flutter code."
---

<?code-excerpt path-base="platform_integration"?>

Flutter apps running on Android can always make use of the
latest APIs on the first day they are released on Android,
no matter what.

To choose the best integration model for your app,
first review the [Platform-specific options guide](/platform-integration/native-code-options).

## Native Android integrations

Once you have selected an integration architecture,
use the following resources to implement it on Android:

### Call Java or Kotlin code directly
To invoke standard Android APIs, Jetpack libraries, or custom JVM classes:
* Read our guide on using [jnigen to bind Java/Kotlin code](/platform-integration/android/jnigen).

### Call C or C++ NDK libraries directly
To execute low-level C libraries or native engine code:
* Read our guide on using [Dart FFI](/platform-integration/bind-native-code).

### Communicate using a message bridge
To build plugins or communicate asynchronously with platform-specific code:
* Use [Pigeon or manual MethodChannels](/platform-integration/platform-channels).
Loading
Loading