android - How to start my app from browser as a separated task -


my activity definition looks this:

 <activity         android:name="com.broadvision.myvv.myvv_splash"         android:screenorientation="portrait">          <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="vmoso" />              <data                  android:host="www.vmoso.com"                 android:scheme="http" />             </data>         </intent-filter>     </activity> 

this activity root activity in app, can started browser app, after this, if hit browser icon, want see browser ui, in fact, still see own app, incorrect.
i've tried add android:launchmode="singleinstance" , android:launchmode="singletask", works case, i.e.: app activity starts new task, , can switch browser, when hit app icon home screen, starts new task, not want see, want see last activity when leave.
tried android:allowtaskreparenting="true", doesn't work, believe point on launchmode, after tried 4 modes, still cannot figure out.


Comments