/ / Intent for opening url vytvára novú inštanciu - android, android-intent, intentfilter

Intent for opening url vytvára novú inštanciu - android, android-intent, intentfilter

Pridaním filtrovania zámeru v aplikácii Android Manifest som zvládol zámery na otvorenie adresy URL:

<activity android:name=".TestActivity"
android:label="Test" android:theme="@style/Theme.Titanium"
android:configChanges="keyboardHidden|orientation"
android:screenOrientation="portrait"
android:launchMode="singleTop" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="http" android:host="test.com" />
</intent-filter>
</activity>

Mám problém, keď je App už otvorená,tento kód spúšťa novú inštanciu aplikácie, ktorá môže byť pre užívateľa veľmi mätúca. Po spustení novej inštancie, ak sa používateľ odpojí pomocou tlačidla Domov a potom sa vráti do aplikácie, zobrazí sa 1. instance. Ako to môžem opraviť?

odpovede:

0 pre odpoveď č. 1
android:launchMode="singleInstance" >