Resume上的透明活动没有显示android

Han*_*nry 5 navigation android android-intent

我有3个活动:Home(Base activity)with

 <activity
        android:launchMode="singleTop"
        android:name="com.Home"
        android:label="@string/app_name"

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

            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>
Run Code Online (Sandbox Code Playgroud)

其他两个活动:活动1和活动2

主题android:theme="@android:style/Theme.Translucent" 可以从彼此或从家里调用.

他们总是回到家里onBackpress()它是覆盖

intent.setClass(this, Home.class);
intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
startActivity(intent);
Run Code Online (Sandbox Code Playgroud)

从activity2调用activity1时

intent.setClass(this, ACtivity2.class);
intent.setFlags(Intent.FLAG_ACTIVITY_REORDER_TO_FRONT);
startActivity(intent);
Run Code Online (Sandbox Code Playgroud)

它的onResume被调用但无法看到有没有解决方案?

我只想要堆栈中的单个Activity实例.

要求: 应该永远不应该销毁一次创建的Activity1和Activity2(它们应该始终从历史记录中调用),直到调用Home.

帮帮我.提前致谢.

也访问了这个

Jai*_*mar 0

在你的清单中给出

android:launchMode="singleinstance";
Run Code Online (Sandbox Code Playgroud)