SimulationChart now implements a flyweight pattern containing the simulationId so it can be serialized allows the os to pause the application and restore most of the state of the graph. Currently the selected serieses are not persisted so the graph gets reset to the default. The simulation view is operated in two different modes. On tablets in landscape the graph appears in the right sidepane and the list on the left. When a new simulation is selected, the old graph is pushed to the back stack. When in portrait mode or on smaller sceens, the simluation graph is in a separate activity.
81 lines
3.4 KiB
XML
81 lines
3.4 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
|
package="net.sf.openrocket"
|
|
android:versionCode="1"
|
|
android:versionName="1.0" >
|
|
|
|
<uses-sdk
|
|
android:minSdkVersion="9"
|
|
android:targetSdkVersion="9" />
|
|
|
|
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
|
|
<uses-permission android:name="android.permission.INTERNET" />
|
|
|
|
<application
|
|
android:name=".android.Application"
|
|
android:debuggable="true"
|
|
android:icon="@drawable/or_launcher"
|
|
android:killAfterRestore="true"
|
|
android:label="@string/app_name" >
|
|
<activity
|
|
android:name=".android.Main"
|
|
android:theme="@android:style/Theme.Black.NoTitleBar" >
|
|
<intent-filter>
|
|
<action android:name="android.intent.action.MAIN" />
|
|
|
|
<category android:name="android.intent.category.LAUNCHER" />
|
|
</intent-filter>
|
|
</activity>
|
|
<activity
|
|
android:name=".android.rocket.OpenRocketLoaderActivity"
|
|
android:theme="@android:style/Theme.Black.NoTitleBar" >
|
|
|
|
<!--
|
|
I don't understand why I need to have two different intent filters.
|
|
Combining the <data> elements into a single field did not result in a working
|
|
application. The first intent-filter (with mimeType wildcard) convinces the
|
|
file browser to associate the correct launcher icon. the second intent-filter
|
|
is actually invoked when a file is selected.
|
|
|
|
|
|
|
|
-->
|
|
<!-- this intent filter convinces the file browser to display icons -->
|
|
<intent-filter>
|
|
<action android:name="android.intent.action.VIEW" />
|
|
|
|
<category android:name="android.intent.category.DEFAULT" />
|
|
|
|
<data
|
|
android:host="*"
|
|
android:mimeType="*/*"
|
|
android:pathPattern=".*\\.ork"
|
|
android:scheme="file" />
|
|
</intent-filter>
|
|
<!-- this intent is sent when a file is selected in file browser -->
|
|
<intent-filter>
|
|
<action android:name="android.intent.action.VIEW" />
|
|
|
|
<category android:name="android.intent.category.DEFAULT" />
|
|
|
|
<data
|
|
android:host="*"
|
|
android:pathPattern=".*\\.ork"
|
|
android:scheme="file" />
|
|
</intent-filter>
|
|
</activity>
|
|
<activity
|
|
android:name=".android.rocket.OpenRocketViewer"
|
|
android:label="@string/app_name" />
|
|
<activity android:name=".android.PreferencesActivity" >
|
|
<intent-filter>
|
|
<action android:name="net.sf.openrocket.android.PreferencesActivity" />
|
|
|
|
<category android:name="android.intent.category.PREFERENCE" />
|
|
</intent-filter>
|
|
</activity>
|
|
<activity android:name=".android.motor.MotorHierarchicalBrowser" />
|
|
<activity android:name=".android.motor.MotorDetails" />
|
|
<activity android:name=".android.thrustcurve.TCQueryActivity" />
|
|
<activity android:name=".android.simulation.SimulationViewActivity" />
|
|
<activity android:name=".android.filebrowser.SimpleFileBrowser" />
|
|
</application>
|
|
|
|
</manifest> |