Files
GoTunnel/android
Flik 21621b15f4 feat: Add SettingsActivity for configuration management and logging
- Introduced SettingsActivity to manage server address and token settings.
- Integrated LogStore for logging status updates and messages.
- Updated MainActivity to navigate to SettingsActivity and handle configuration.
- Modified UI in activity_main.xml and activity_settings.xml for improved user experience.
- Adjusted color scheme in colors.xml for better visibility and aesthetics.
- Enhanced string resources in strings.xml for clarity and consistency.
- Refactored notification handling in NotificationHelper.kt to use status labels.
- Updated TunnelService to log status changes and messages.
2026-03-22 22:04:14 +08:00
..

GoTunnel Android Host

This directory contains a minimal Android Studio / Gradle project skeleton for the GoTunnel Android host app.

What is included

  • Foreground service shell for keeping the tunnel process alive
  • Boot receiver for auto-start on device reboot
  • Network recovery helper for reconnect/restart triggers
  • Basic configuration screen for server address and token
  • Notification channel and ongoing service notification
  • A stub bridge layer that can later be replaced with a gomobile/native Go core binding

Current status

The Go tunnel core is not wired into Android yet. GoTunnelBridge returns a stub controller so the app structure can be developed independently from the Go runtime integration.

Open in Android Studio

Open the android/ folder as a Gradle project. Android Studio can sync it directly and generate a wrapper if you want to build from the command line later.

Notes

  • The foreground service is marked as dataSync and starts in sticky mode.
  • Auto-start is controlled by the saved configuration.
  • Network restoration currently triggers a restart hook in the stub controller.
  • Replace the stub bridge with a native binding when the Go client core is exported for Android.