应用最小化后,单个实例活动已关闭

时间:2016-11-22 13:39:45

标签: android android-activity android-launcher

我开发了一个Android应用程序,如果它在屏幕上可见,它的一个活动是单个安装,并且从启动器活动打开的启动器应用程序打开最小化应用程序,但其他活动的行为与单个实例活动不同。

单实例活动流程:

飞溅(完成) - mpin(完成) - kochionecard(单一实例) 应用程序最小化我点击启动器图标打开启动活动

其他活动流程 飞溅(完成) - mpin(完成) - kochionecard(单一实例) - Addmoney(正常) 应用程序最小化我点击启动图标打开Addmoney活动,但我按下应用程序退出

我不知道为什么会发生任何人解释我将如何解决这些问题

   <?xml version="1.0" encoding="utf-8"?>
  <manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.app.kochione"
android:installLocation="auto">

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<uses-permission android:name="android.permission.READ_CONTACTS" />
<uses-permission android:name="android.permission.CALL_PHONE" />
<uses-permission android:name="android.permission.RECEIVE_SMS" />
<uses-permission android:name="android.permission.READ_SMS" />
<uses-permission android:name="android.permission.SEND_SMS" />

<supports-screens
    android:largeScreens="true"
    android:normalScreens="true"
    android:resizeable="true"
    android:smallScreens="true"
    android:xlargeScreens="true" />

<application
    android:name=".KochiApplication"
    android:allowBackup="true"
    android:icon="@mipmap/ic_launcher"
    android:label="@string/app_name"
    android:largeHeap="true"
    android:protectionLevel="dangerous"
    android:screenOrientation="portrait"
    android:supportsRtl="true"
    android:theme="@style/AppTheme">
    <meta-data
        android:name="io.fabric.ApiKey"
        android:value="eb2d72fbddd84bfcf684dd47dcc39e19c189b685" />

    <activity
        android:name=".activities.MpinActivity"
        android:configChanges="orientation"
        android:launchMode="singleInstance"
        android:screenOrientation="portrait"
        android:windowSoftInputMode="stateVisible|adjustPan" />
    <activity
        android:name=".activities.WelcomeSignupActivity"
        android:configChanges="orientation"
        android:screenOrientation="portrait"
        android:windowSoftInputMode="adjustPan" />
    <activity
        android:name=".activities.SplashActivity"
        android:configChanges="orientation"
        android:screenOrientation="portrait">


        <intent-filter>
            <action android:name="android.intent.action.MAIN" />

            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>



    </activity>
    <activity
        android:name=".activities.dashboard.ProfileActivity"
        android:configChanges="orientation"
        android:launchMode="singleTask"
        android:screenOrientation="portrait"
        android:windowSoftInputMode="stateHidden|adjustPan" />
    <activity
        android:name=".activities.SosActivity"
        android:configChanges="orientation"
        android:screenOrientation="portrait"
        android:windowSoftInputMode="stateHidden|adjustPan" />
    <activity
        android:name=".activities.dashboard.KochiOneCardActivity"
        android:configChanges="orientation"
        android:launchMode="singleTask"

        android:screenOrientation="portrait"
        android:windowSoftInputMode="stateHidden|adjustPan">




    </activity>
    <activity android:name=".activities.dashboard.kochi1card.ServiceRequestActivity"
        android:screenOrientation="portrait"/>
    <activity android:name=".activities.dashboard.kochi1card.OfferDetailActivity"
        android:screenOrientation="portrait"/>
    <activity android:name=".activities.dashboard.kochi1card.NotificationDetailActivity"
        android:screenOrientation="portrait"/>
    <activity android:name=".activities.dashboard.kochi1card.StatementActivity"
        android:screenOrientation="portrait"/>
    <activity android:name=".activities.dashboard.kochi1card.IssuanceCenterActivity"
        android:screenOrientation="portrait"/>
    <activity
        android:name=".activities.dashboard.kochi1card.addmoney.AddMoneyActivity"
        android:windowSoftInputMode="adjustPan|stateVisible"
        android:screenOrientation="portrait"/>
    <activity android:name=".activities.dashboard.kochi1card.addmoney.PaymentActivity"
        android:screenOrientation="portrait"/>
    <activity android:name=".activities.dashboard.kochi1card.MyBalanceActivity"
        android:screenOrientation="portrait"/>

    <meta-data
        android:name="com.google.android.gms.version"
        android:value="@integer/google_play_services_version" />

    <activity android:name=".activities.dashboard.qrcode.MetroTicketActivity"
        android:screenOrientation="portrait"/>
    <activity
        android:name=".activities.dashboard.qrcode.QrMpinActivity"
        android:windowSoftInputMode="adjustPan|stateVisible"
        android:screenOrientation="portrait"/>
    <activity android:name=".activities.dashboard.qrcode.QrTicketActivity"
        android:screenOrientation="portrait"/>
    <activity android:name=".activities.dashboard.qrcode.tripPlanner.TripPlannerDetailActivity"
        android:screenOrientation="portrait"/>
    <activity android:name=".activities.dashboard.qrcode.tripPlanner.TripPlannerTimeTableActivity"
        android:screenOrientation="portrait"/>
    <activity
        android:name=".activities.dashboard.KochiMetroActivity"
        android:configChanges="orientation"
        android:label="@string/title_activity_kochi_metro"
        android:launchMode="singleTask"
        android:screenOrientation="portrait"
        android:theme="@style/AppTheme">



    </activity>

    <activity android:name=".activities.dashboard.bottomsheet.QRTicketHistoryActivity"
        android:screenOrientation="portrait"/>

    <receiver android:name=".receivers.TicketCancelReceiver" />

    <service
        android:name=".services.TicketCancelService"
        android:exported="false"></service>
</application>

我希望如果我最小化应用程序单实例活动,就像其他活动一样恢复。

0 个答案:

没有答案