Getting Started
This guide walks you through integrating the Privacy Boost Android SDK into your app.For a minimal copy-paste example, see the Android Quickstart. This guide explains each step in detail.
Prerequisites
- The SDK installed in your project
- An App ID and server URL (see Configuration)
- A wallet integration (WalletConnect, custom, etc.)
- Familiarity with authentication options (optional for development, required for production)
Overview
The Android SDK follows a simple flow:- Initialize - Create SDK instance with configuration
- Authenticate - Connect wallet and authenticate via
WalletDelegate - Use - Deposit, unshield, transfer tokens
Basic Setup
1. Configure the SDK
2. Initialize
Connecting a Wallet
The SDK uses theWalletDelegate interface to interact with wallets:
Core Operations
Check Balance
Deposit Tokens
Move tokens from wallet to shielded pool:Withdraw Tokens
Move tokens from shielded pool to wallet:Private Transfer
Send tokens privately to another user:Using with Coroutines
The SDK methods are blocking. Use coroutines for non-blocking calls:Complete Example
Error Handling
The SDK throwsSDKError for various failure conditions:
Session Persistence
Save and restore sessions to avoid re-signing:Next Steps
Wallet Integration
Detailed WalletDelegate implementation
Session Storage
Android Keystore storage and biometric unlock
API Reference
Complete API documentation
Key Management
Key derivation, persistence options, and recovery