Skip to main content

AndroidFileBitmap

Image file on the Android device.

In a built app, files in the app's assets directory are available on the device, for example at Path(__file__).parent / "assets" / "avatar.png"; files the app saves, such as under a StoragePaths directory, can also be used.

Note

The path must exist on the Android device. While developing with flet run against a phone, Python runs on your computer, so its paths do not exist on the device; use AndroidBytesBitmap instead.

Inherits: AndroidBitmap

Properties

  • path - Absolute path of an image file readable by the app.

Properties​

pathinstance-attribute​

path: str

Absolute path of an image file readable by the app.