For the moment, my program works well and loads SVG as I wanted. Some points about my configuration (maybe it can help)
- I am targeting Android API 15. I gave up with the 19.
- I use
android:finishOnTaskLaunch="true"
in theAndroidManifest.xml
- I do not call
finish()
in theonPause()
method OnNewIntent
is never called, but theonCreate
method is called which parse the new intent.The content of the activity manifest is the following:
<activity android:name="com.example.mypackage" android:launchMode="singleTop" android:finishOnTaskLaunch="true" android:alwaysRetainTaskState="false" android:theme="@android:style/Theme.NoTitleBar.Fullscreen" android:screenOrientation="landscape" android:configChanges="orientation|keyboardHidden|screenSize"> <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="file" /> <data android:mimeType="*/*" /> <data android:pathPattern=".*\\.svg" /> <data android:host="*" /> </intent-filter> <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity>