---
title: "Save electronic signatures on Android"
canonical_url: "https://www.nutrient.io/guides/android/signatures/signature-storage/"
md_url: "https://www.nutrient.io/guides/android/signatures/signature-storage.md"
last_updated: "2026-05-30T02:20:01.177Z"
description: "Learn how to implement and manage signature storage on Android for seamless document signing."
---

# How to save and store electronic signatures on Android

Nutrient allows you to implement your own mechanism for storing signatures.

If you provide such a mechanism, then signatures may optionally be saved at the same time they’re added to a document. The saving of signatures is based on the [`signatureSavingStrategy`](https://www.nutrient.io/api/android/nutrient/com.pspdfkit.configuration/-pdf-configuration/-builder/signature-saving-strategy.html): This defaults to showing a toggle in the UI that allows the user to choose whether to save, but you can change this option to hide the toggle and instead always save signatures without giving the user the choice.

For signature storage to work, a [`SignatureStorage`](https://www.nutrient.io/api/android/nutrient/com.pspdfkit.signatures.storage/-signature-storage/index.html) must first be set on your `PdfFragment` with [`PdfFragment#setSignatureStorage`](https://www.nutrient.io/api/android/nutrient/com.pspdfkit.ui/-pdf-fragment/set-signature-storage.html).![Screenshot of enabled toggle for saving signatures.](@/assets/guides/android/signatures/signature-storage/save-toggle.png)

If you provide stored signatures to Nutrient, then when the user selects a signature form field or the signature tool, the list of stored signatures will be shown instead of the signature creation UI.![Android screenshot showing a list with two signatures: John Appleseed and J.A.](@/assets/guides/android/signatures/signature-storage/saved-signatures.png)

[`SignatureStorage`](https://www.nutrient.io/api/android/nutrient/com.pspdfkit.signatures.storage/-signature-storage/index.html) can be used to create your own solution for storing and retrieving signatures. A signature store can be set on the [`PdfFragment#setSignatureStorage`](https://www.nutrient.io/api/android/nutrient/com.pspdfkit.ui/-pdf-fragment/set-signature-storage.html) to make user-created signatures savable.

By default, no signature store is provided. If you want to use the built-in storage solution that uses the [`DatabaseSignatureStorage`](https://www.nutrient.io/api/android/nutrient/com.pspdfkit.signatures.storage/-database-signature-storage/index.html), you can use a setup like this:

### KOTLIN

```kotlin

// Make sure saving is enabled in the configuration.
val configuration = PdfConfiguration.Builder().signatureSavingStrategy(SignatureSavingStrategy.SAVE_IF_SELECTED).build()...

// PDF Activity class:
override fun onCreate(savedInstanceState: Bundle?) {
    super.onCreate(savedInstanceState)

    // You can create any number of signature storage databases.
    val storage: SignatureStorage = DatabaseSignatureStorage.withName("MyCoolSignatureDatabase")

    // Configure your custom storage method in the fragment.
    pdfFragment.setSignatureStorage(storage)
}

```

### JAVA

```java

// Make sure saving is enabled in the configuration.
final PdfConfiguration configuration = new PdfConfiguration.Builder().signatureSavingStrategy(SignatureSavingStrategy.SAVE_IF_SELECTED).build();...

// PDF Activity class:
@Override protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);

    // You can create any number of signature storage databases.
    final SignatureStorage storage = DatabaseSignatureStorage.withName("MyCoolSignatureDatabase");

    // Configure your custom storage method in the fragment.
    getPdfFragment().setSignatureStorage(storage);
}

```

However, you can also create your own storage by implementing a class that conforms to the [`SignatureStorage`](https://www.nutrient.io/api/android/nutrient/com.pspdfkit.signatures.storage/-signature-storage/index.html) protocol. To conform to this protocol, you’ll need to handle adding, removing, and retrieving existing signatures from your custom store. [`addSignature`](https://www.nutrient.io/api/android/nutrient/com.pspdfkit.signatures.storage/-signature-storage/add-signature.html) will be called whenever the user has created a signature and enabled saving this signature in the signing UI.
---

## Related pages

- [How to add electronic signatures to PDFs on Android](/guides/android/signatures/adding-an-electronic-signature.md)
- [eSign PDFs with a certificate on Android](/guides/android/signatures/using-electronic-signatures-and-digital-signatures-together.md)

