Native Android Examples (C# / Mobile)
Overview
The examples in this section show how to use FlexCel with .NET for Android (formerly Xamarin.Android). Each demo uses the native Android UI framework (Activities, Views, Adapters). They only are tested in the latest stable .NET release, since the mobile world changes too fast to use older versions.
Demos
| Demo | Description |
|---|---|
| FlexCalc | Interactive spreadsheet calculator using FlexCel's formula engine with a native ListView and custom BaseAdapter |
| LangWars | Report generator that fetches Stack Overflow data and exports an Excel report to HTML, displayed in a WebView |
Platform-Specific Notes
- File storage: App-private files are stored in
Environment.SpecialFolder.Personal(typically/data/data/<package>/files/). No special permissions are required. - Assets: Template files and offline data are bundled as Android assets and accessed via
Android.App.Application.Context.Assets. Because asset streams are non-seekable, they are copied to aMemoryStreambefore passing to FlexCel. - File sharing: Uses Android
Intent.ACTION_SENDwith aFileProviderto securely share generated Excel files with other apps.