我正在使用自定义URLScheme打开应用程序。问题是,当此应用程序中已存在app / activities实例时,单击HOME并从URL运行应用程序时,将创建新的app实例。 问题是:在再次启动应用程序之前,如何完成已创建和运行的所有活动?
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.nomtek.activities">
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.FLASHLIGHT" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name" >
<activity
android:name=".FunctionsActivity"
android:configChanges="orientation|screenSize"
android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<intent-filter>
<data android:scheme="ax4s" />
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
</intent-filter>
</activity>
<activity
android:name=".AboutActivity"
android:configChanges="orientation|screenSize"
android:label="@string/title_activity_about" >
</activity>
<activity
android:name=".FunctionActivity"
android:configChanges="orientation|screenSize"
android:label="@string/title_activity_function">
</activity>
<activity
android:name=".BarcodeCaptureActivity"
android:label="@string/title_activity_barcode_capute"
android:screenOrientation="fullSensor"
android:stateNotNeeded="true"
android:theme="@style/zxing_CaptureTheme"
android:windowSoftInputMode="stateAlwaysHidden">
</activity>
</application>