XSDL: implemented startActivityForResult() handler for x11:// intents

This commit is contained in:
Sergii Pylypenko
2015-10-26 23:02:24 +02:00
parent 43554581b3
commit 0ace3293d1
3 changed files with 171 additions and 26 deletions

View File

@@ -1,15 +1,20 @@
--- a/project/AndroidManifest.xml 2015-01-01 23:59:34.805231773 +0200
+++ a/project/AndroidManifest.xml 2015-01-01 23:59:45.189378809 +0200
@@ -23,6 +23,12 @@
<category android:name="android.intent.category.MULTIWINDOW_LAUNCHER" /> <!-- Samsung's multiwindow -->
<action android:name="com.sec.android.airview.HOVER" /> <!-- Stupid Samsung requires their own intent for finger-hover events -->
</intent-filter>
@@ -43,6 +43,17 @@
android:configChanges="mcc|mnc|locale|touchscreen|keyboard|keyboardHidden|navigation|screenLayout|fontScale|uiMode|orientation|screenSize|smallestScreenSize|layoutDirection"
android:enabled="true"
/>
+ <activity android:name=".RunFromOtherApp"
+ android:label="@string/app_name"
+ android:launchMode="standard"
+ android:configChanges="mcc|mnc|locale|touchscreen|keyboard|keyboardHidden|navigation|screenLayout|fontScale|uiMode|orientation|screenSize|smallestScreenSize|layoutDirection"
+ android:windowSoftInputMode="stateUnspecified">
+ <intent-filter>
+ <action android:name="android.intent.action.VIEW" />
+ <action android:name="android.content.Intent.ACTION_VIEW" />
+ <category android:name="android.intent.category.DEFAULT" />
+ <action android:name="android.intent.action.RUN" /> <action android:name="android.intent.action.MAIN" />
+ <category android:name="android.intent.category.DEFAULT"/>
+ <data android:scheme="x11" />
+ </intent-filter>
</activity>
<meta-data android:name="com.sec.android.support.multiwindow" android:value="true" /> <!-- Samsung's multiwindow -->
<activity android:name=".RestartMainActivity"
+ </activity>
</application>
<uses-sdk android:minSdkVersion="9" android:targetSdkVersion="23"/>