summaryrefslogtreecommitdiff
path: root/android
diff options
context:
space:
mode:
Diffstat (limited to 'android')
-rw-r--r--android/AndroidManifest.xml16
1 files changed, 15 insertions, 1 deletions
diff --git a/android/AndroidManifest.xml b/android/AndroidManifest.xml
index 51edc1b..0e6115e 100644
--- a/android/AndroidManifest.xml
+++ b/android/AndroidManifest.xml
@@ -1,13 +1,28 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:tools="http://schemas.android.com/tools"
package="org.buetow.quicklogger">
<application>
+ <!-- Also accept SEND on the main Go activity (some launchers prefer direct targets) -->
+ <activity
+ android:name="org.golang.app.GoNativeActivity"
+ android:exported="true"
+ tools:node="merge">
+ <intent-filter>
+ <action android:name="android.intent.action.SEND" />
+ <category android:name="android.intent.category.DEFAULT" />
+ <data android:mimeType="text/plain" />
+ <data android:mimeType="text/*" />
+ </intent-filter>
+ </activity>
+
<!-- Share receiver activity: writes text to cache and launches main app -->
<activity
android:name=".ShareActivity"
android:exported="true"
android:excludeFromRecents="true"
+ android:launchMode="singleTask"
android:taskAffinity=""
android:theme="@android:style/Theme.Translucent.NoTitleBar">
<intent-filter>
@@ -19,4 +34,3 @@
</activity>
</application>
</manifest>
-