Commit 4fed40e7 authored by Xavier's avatar Xavier

Changing app name for Stavor, updating About versions and names. Release v0.7

parent 9edc9252
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="cs.si.satatt"
android:versionCode="060"
android:versionName="0.6" >
package="cs.si.stavor"
android:versionCode="070"
android:versionName="0.7" >
<!-- VersionCode: [2]version+[1]architecture e.g 1.0arm is 100, 1.0x86 is 101 -->
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<!-- <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
<uses-permission android:name="android.permission.RECORD_AUDIO" />
<uses-permission android:name="android.permission.WAKE_LOCK" /> -->
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-sdk
android:minSdkVersion="14"
android:targetSdkVersion="19" />
<application
android:name=".SatAttApplication"
android:name="cs.si.stavor.StavorApplication"
android:hardwareAccelerated="true"
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/splashScreenTheme" >
<activity
android:name="cs.si.satatt.MainActivity"
android:name="cs.si.stavor.MainActivity"
android:label="@string/app_name"
>
<intent-filter>
......@@ -37,13 +31,13 @@
</intent-filter>
</activity>
<activity
android:name="cs.si.satatt.AboutActivity"
android:name="cs.si.stavor.AboutActivity"
android:label="@string/about"
android:screenOrientation="portrait"
>
</activity>
<activity
android:name="cs.si.satatt.MissionActivity"
android:name="cs.si.stavor.MissionActivity"
android:label="@string/mission_editor"
android:theme="@style/nonSplashScreenTheme"
>
......
......@@ -51,7 +51,7 @@
android:layout_alignParentBottom="true"
android:layout_alignParentRight="true" >
<layout.WrappingSlidingDrawer
<cs.si.stavor.layout.WrappingSlidingDrawer
android:id="@+id/slidingDrawer1"
android:layout_width="wrap_content"
android:layout_height="match_parent"
......@@ -170,7 +170,7 @@
android:textAppearance="?android:attr/textAppearanceLarge"
android:textColor="@color/white" />
</LinearLayout>
</layout.WrappingSlidingDrawer>
</cs.si.stavor.layout.WrappingSlidingDrawer>
</FrameLayout>
<FrameLayout
......
......@@ -12,7 +12,7 @@
android:layout_alignParentTop="true"
android:layout_marginLeft="26dp"
android:layout_marginTop="15dp"
android:text="@string/about"
android:text="@string/app_name"
android:textAppearance="?android:attr/textAppearanceLarge"
android:textColor="@color/white" />
......@@ -37,6 +37,27 @@
android:layout_marginTop="10dp"
android:orientation="vertical" >
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content" >
<TextView
android:id="@+id/TextView04"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/about_app"
android:textColor="@color/white" />
<TextView
android:id="@+id/TextView07"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="right"
android:gravity="right"
android:text="@string/about_appname"
android:textColor="@color/white" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content" >
......
......@@ -4,7 +4,7 @@
android:id="@+id/drawer_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="cs.si.satatt.MainActivity" >
tools:context="cs.si.stavor.MainActivity" >
<!--
As the main content view, the view below consumes the entire
......@@ -30,7 +30,7 @@
<fragment
android:id="@+id/navigation_drawer"
android:name="fragments.NavigationDrawerFragment"
android:name="cs.si.stavor.fragments.NavigationDrawerFragment"
android:layout_width="@dimen/navigation_drawer_width"
android:layout_height="match_parent"
android:layout_gravity="start" />
......
......@@ -6,7 +6,7 @@
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
tools:context="cs.si.satatt.MainActivity$PlaceholderFragment" >
tools:context="cs.si.stavor.MainActivity$PlaceholderFragment" >
<TextView
android:id="@+id/section_label"
......
......@@ -10,7 +10,7 @@
android:dividerHeight="2dp"
android:drawSelectorOnTop="false"
android:listSelector="@android:color/transparent"
tools:context="fragments.NavigationDrawerFragment" >
tools:context="cs.si.stavor.fragments.NavigationDrawerFragment" >
</ListView>
......@@ -84,7 +84,7 @@
android:layout_height="wrap_content"
android:layout_alignParentBottom="true" >
<layout.WrappingSlidingDrawer
<cs.si.stavor.layout.WrappingSlidingDrawer
android:id="@+id/slidingDrawer1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
......@@ -200,7 +200,7 @@
android:textAppearance="?android:attr/textAppearanceLarge"
android:textColor="@color/white" />
</LinearLayout>
</layout.WrappingSlidingDrawer>
</cs.si.stavor.layout.WrappingSlidingDrawer>
</FrameLayout>
</RelativeLayout>
\ No newline at end of file
<menu xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
tools:context="cs.si.satatt.MainActivity" >
tools:context="cs.si.stavor.MainActivity" >
<item
android:id="@+id/action_screenshot"
......
<menu xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
tools:context="cs.si.satatt.MainActivity" >
tools:context="cs.si.stavor.MainActivity" >
<item
android:id="@+id/menu_views_ref_frame"
......
<?xml version="1.0" encoding="utf-8"?>
<resources xmlns:android="http://schemas.android.com/apk/res/android">
<string name="app_name">SatAtt</string>
<string name="app_name">STAVOR</string>
<string name="dummy"></string>
<string name="app_exit_prevent_message">Presione atrás otra vez para cerrar la aplicación</string>
<string name="title_section1">Simulador</string>
......@@ -90,6 +90,9 @@
<string name="about_lang">Idiomas:</string>
<string name="about_langs">EN FR -ES-</string>
<string name="about_platform">Arquitectura:</string>
<string name="about_app">App:</string>
<string name="about_appname">Spacecraft Three-dimensional Attitude Visualization using ORekit library</string>
<string name="dialog_welcome">Bienvenido</string>
<string name="dialog_error">Error</string>
......
<?xml version="1.0" encoding="utf-8"?>
<resources xmlns:android="http://schemas.android.com/apk/res/android">
<string name="app_name">SatAtt</string>
<string name="app_name">STAVOR</string>
<string name="dummy"></string>
<string name="app_exit_prevent_message">Appuyez de nouveau pour fermer l\'application</string>
<string name="title_section1">Simulateur</string>
......@@ -90,6 +90,9 @@
<string name="about_lang">Langues:</string>
<string name="about_langs">EN -FR- ES</string>
<string name="about_platform">Architecture:</string>
<string name="about_app">App:</string>
<string name="about_appname">Spacecraft Three-dimensional Attitude Visualization using ORekit library</string>
<string name="dialog_welcome">Bienvenue</string>
<string name="dialog_error">Erreur</string>
......
<?xml version="1.0" encoding="utf-8"?>
<resources xmlns:android="http://schemas.android.com/apk/res/android">
<string name="app_name">SatAtt</string>
<string name="app_name">STAVOR</string>
<string name="dummy"></string>
<string name="app_exit_prevent_message">Press back again to close this app</string>
<string name="title_section1">Simulator</string>
......@@ -90,6 +90,8 @@
<string name="about_lang">Languages:</string>
<string name="about_langs">-EN- FR ES</string>
<string name="about_platform">Architecture:</string>
<string name="about_app">App:</string>
<string name="about_appname">Spacecraft Three-dimensional Attitude Visualization using ORekit library</string>
<string name="dialog_welcome">Welcome</string>
<string name="dialog_error">Error</string>
......
package cs.si.satatt;
package cs.si.stavor;
import java.sql.Date;
import java.text.SimpleDateFormat;
import cs.si.stavor.R;
import cs.si.stavor.app.Parameters;
import android.app.Activity;
import android.content.pm.PackageManager.NameNotFoundException;
import android.os.Bundle;
import android.widget.TextView;
import app.Parameters;
/**
* Activity to show the app About screen
......
package cs.si.satatt;
package cs.si.stavor;
/*import org.xwalk.core.XWalkResourceClient;
import org.xwalk.core.XWalkUIClient;*/
import mission.MissionAndId;
import org.xwalk.core.XWalkResourceClient;
import org.xwalk.core.XWalkUIClient;
import org.xwalk.core.XWalkView;
import dialogs.ErrorDialogFragment;
import dialogs.ResetAppDialogFragment;
import dialogs.ResetDbDialogFragment;
import dialogs.WelcomeDialogFragment;
import settings.SettingsBasicFragment;
import settings.SettingsExtraFragment;
import settings.SettingsGeneralFragment;
import settings.SettingsMeasuresFragment;
import settings.SettingsModelsFragment;
import simulator.Simulator;
import fragments.NavigationDrawerFragment;
import fragments.HudFragment;
import fragments.RetainedFragment;
import fragments.SimulatorFragment;
import fragments.TestFragment;
import cs.si.stavor.R;
import cs.si.stavor.app.Installer;
import cs.si.stavor.app.OrekitInit;
import cs.si.stavor.app.Parameters;
import cs.si.stavor.dialogs.ErrorDialogFragment;
import cs.si.stavor.dialogs.ResetAppDialogFragment;
import cs.si.stavor.dialogs.ResetDbDialogFragment;
import cs.si.stavor.dialogs.WelcomeDialogFragment;
import cs.si.stavor.fragments.HudFragment;
import cs.si.stavor.fragments.NavigationDrawerFragment;
import cs.si.stavor.fragments.RetainedFragment;
import cs.si.stavor.fragments.SimulatorFragment;
import cs.si.stavor.fragments.TestFragment;
import cs.si.stavor.mission.MissionAndId;
import cs.si.stavor.settings.SettingsBasicFragment;
import cs.si.stavor.settings.SettingsExtraFragment;
import cs.si.stavor.settings.SettingsGeneralFragment;
import cs.si.stavor.settings.SettingsMeasuresFragment;
import cs.si.stavor.settings.SettingsModelsFragment;
import cs.si.stavor.simulator.Simulator;
import android.support.v7.app.ActionBarActivity;
import android.support.v7.app.ActionBar;
import android.app.DialogFragment;
......@@ -36,9 +46,6 @@ import android.view.Menu;
import android.view.MenuItem;
import android.view.Window;
import android.widget.Toast;
import app.Installer;
import app.OrekitInit;
import app.Parameters;
/**
* Main activity of the application, managing persistent objects and fragments
......@@ -97,8 +104,8 @@ public class MainActivity extends ActionBarActivity implements
OrekitInit.init(Installer.getOrekitDataRoot(this));
//Install the Missions database if not installed yet and store database objects
((SatAttApplication)getApplication()).db_help = Installer.installApkDatabase(this);
((SatAttApplication)getApplication()).db = ((SatAttApplication)getApplication()).db_help.getWritableDatabase();
((StavorApplication)getApplication()).db_help = Installer.installApkDatabase(this);
((StavorApplication)getApplication()).db = ((StavorApplication)getApplication()).db_help.getWritableDatabase();
//Configure application window
requestWindowFeature(Window.FEATURE_PROGRESS);
......@@ -473,7 +480,7 @@ public class MainActivity extends ActionBarActivity implements
simulator.disconnect();
else
dataFragment.setData(this.simulator);
((SatAttApplication)getApplication()).db_help.close();
((StavorApplication)getApplication()).db_help.close();
//XWalk
if (mXwalkView != null) {
mXwalkView.onDestroy();
......
package cs.si.satatt;
package cs.si.stavor;
import java.io.IOException;
......@@ -8,11 +8,12 @@ import org.orekit.time.DateTimeComponents;
import org.orekit.time.TimeScale;
import org.orekit.time.TimeScalesFactory;
import mission.Mission;
import mission.MissionAndId;
import cs.si.satatt.R;
import database.SerializationUtil;
import database.MissionReaderContract.MissionEntry;
import cs.si.stavor.R;
import cs.si.stavor.app.Parameters;
import cs.si.stavor.database.SerializationUtil;
import cs.si.stavor.database.MissionReaderContract.MissionEntry;
import cs.si.stavor.mission.Mission;
import cs.si.stavor.mission.MissionAndId;
import android.app.Activity;
import android.content.ContentValues;
import android.os.Bundle;
......@@ -26,7 +27,6 @@ import android.widget.EditText;
import android.widget.TextView;
import android.widget.TimePicker;
import android.widget.Toast;
import app.Parameters;
/**
* Activity to edit or create the missions of the database
......@@ -105,7 +105,7 @@ public class MissionActivity extends Activity{
if(isEdit){
//Update register with new name and serialized
if(editMission()){
((SatAttApplication)getApplication()).loader.reset();
((StavorApplication)getApplication()).loader.reset();
finish();
}else{
Toast.makeText(getApplicationContext(), getString(R.string.mission_error_edit), Toast.LENGTH_LONG).show();
......@@ -113,7 +113,7 @@ public class MissionActivity extends Activity{
}else{
//Create new register in db
if(addMission()){
((SatAttApplication)getApplication()).loader.reset();
((StavorApplication)getApplication()).loader.reset();
finish();
}else{
Toast.makeText(getApplicationContext(), getString(R.string.mission_error_create), Toast.LENGTH_LONG).show();
......@@ -221,7 +221,7 @@ public class MissionActivity extends Activity{
// Insert the new row, returning the primary key value of the new row
long newRowId;
newRowId = ((SatAttApplication)getApplication()).db.update(
newRowId = ((StavorApplication)getApplication()).db.update(
MissionEntry.TABLE_NAME,
values,
"_id "+"="+mission.id,
......@@ -245,7 +245,7 @@ public class MissionActivity extends Activity{
// Insert the new row, returning the primary key value of the new row
long newRowId;
newRowId = ((SatAttApplication)getApplication()).db.insert(
newRowId = ((StavorApplication)getApplication()).db.insert(
MissionEntry.TABLE_NAME,
null,
values);
......
package cs.si.satatt;
package cs.si.stavor;
import com.commonsware.cwac.loaderex.SQLiteCursorLoader;
import database.MissionReaderDbHelper;
import cs.si.stavor.database.MissionReaderDbHelper;
import android.app.Application;
import android.database.sqlite.SQLiteDatabase;
......@@ -11,7 +11,7 @@ import android.database.sqlite.SQLiteDatabase;
* @author Xavier Gibert
*
*/
public class SatAttApplication extends Application {
public class StavorApplication extends Application {
private String searchTerm = "";
//Global database objects (for multi-activity access)
......
package app;
package cs.si.stavor.app;
import java.io.File;
import java.io.FileOutputStream;
......@@ -6,12 +6,12 @@ import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import mission.Mission;
import cs.si.satatt.MainActivity;
import cs.si.satatt.R;
import database.MissionReaderContract.MissionEntry;
import database.MissionReaderDbHelper;
import database.SerializationUtil;
import cs.si.stavor.R;
import cs.si.stavor.MainActivity;
import cs.si.stavor.database.MissionReaderDbHelper;
import cs.si.stavor.database.SerializationUtil;
import cs.si.stavor.database.MissionReaderContract.MissionEntry;
import cs.si.stavor.mission.Mission;
import android.app.Activity;
import android.content.ContentValues;
import android.content.SharedPreferences;
......
package app;
package cs.si.stavor.app;
import java.io.File;
......
package app;
package cs.si.stavor.app;
/**
* Global app configuration parameters
......@@ -23,7 +23,7 @@ public class Parameters {
public static final String project_start_date = "2014/04/01";
public static final String project_license = "Undef";
public static final String version_orekit = "6.1";
public static final String version_xwalk = "7.35.140.0c";
public static final String version_xwalk = "7.36.149.0c";
public static final String version_threejs = "r67";
public static final String version_gson = "2.2.4";
public static final String version_androidcolorpicker = "1.0";
......
package database;
package cs.si.stavor.database;
import android.provider.BaseColumns;
......
package database;
package cs.si.stavor.database;
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
......
package database;
package cs.si.stavor.database;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import mission.Mission;
import cs.si.stavor.mission.Mission;
/**
* Provides functions to serialize and deserialize the missions that will be stored or loaded from the database
......
package dialogs;
package cs.si.stavor.dialogs;
import cs.si.satatt.MainActivity;
import cs.si.satatt.R;
import cs.si.satatt.SatAttApplication;
import database.MissionReaderContract.MissionEntry;
import cs.si.stavor.R;
import cs.si.stavor.MainActivity;
import cs.si.stavor.StavorApplication;
import cs.si.stavor.database.MissionReaderContract.MissionEntry;
import android.app.AlertDialog;
import android.app.Dialog;
import android.app.DialogFragment;
......@@ -62,7 +62,7 @@ public class DeleteMissionDialogFragment extends DialogFragment {
*/
private void deleteMission(int mission_id) {
MainActivity act = ((MainActivity)getActivity());
((SatAttApplication)act.getApplication()).loader.delete(MissionEntry.TABLE_NAME, MissionEntry._ID+"="+mission_id, null);
((StavorApplication)act.getApplication()).loader.delete(MissionEntry.TABLE_NAME, MissionEntry._ID+"="+mission_id, null);
}
}
package dialogs;
package cs.si.stavor.dialogs;
import cs.si.satatt.R;
import cs.si.stavor.R;
import android.app.AlertDialog;
import android.app.Dialog;
import android.app.DialogFragment;
......
package dialogs;
package cs.si.stavor.dialogs;
import cs.si.satatt.MainActivity;
import cs.si.satatt.R;
import cs.si.stavor.R;
import cs.si.stavor.MainActivity;
import android.app.AlarmManager;
import android.app.AlertDialog;
import android.app.Dialog;
......
package dialogs;
package cs.si.stavor.dialogs;
import cs.si.satatt.MainActivity;
import cs.si.satatt.R;
import cs.si.satatt.SatAttApplication;
import database.MissionReaderContract.MissionEntry;
import cs.si.stavor.R;
import cs.si.stavor.MainActivity;
import cs.si.stavor.StavorApplication;
import cs.si.stavor.database.MissionReaderContract.MissionEntry;
import android.app.AlarmManager;
import android.app.AlertDialog;
import android.app.Dialog;
......@@ -60,7 +60,7 @@ public class ResetDbDialogFragment extends DialogFragment {
*/
private void resetDb() {
//Delete database
((SatAttApplication)((MainActivity)getActivity()).getApplication()).db.delete(MissionEntry.TABLE_NAME, "1", null);
((StavorApplication)((MainActivity)getActivity()).getApplication()).db.delete(MissionEntry.TABLE_NAME, "1", null);
//((MainActivity)getActivity()).loader.execSQL("delete * from "+ MissionEntry.TABLE_NAME, null);
SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(getActivity().getBaseContext());
preferences.edit().putBoolean(getString(R.string.pref_key_database_installed), false).commit();
......
package dialogs;
package cs.si.stavor.dialogs;
import cs.si.satatt.R;
import cs.si.stavor.R;
import cs.si.stavor.app.Installer;
import android.app.AlertDialog;
import android.app.Dialog;
import android.app.DialogFragment;
import android.content.DialogInterface;
import android.os.Bundle;
import app.Installer;
/**
* Welcome dialog to inform of the installation paths
......
package fragments;
package cs.si.stavor.fragments;
import org.xwalk.core.XWalkSettings;
import org.xwalk.core.XWalkView;
import simulator.Simulator;
import web.WebAppInterface;
import cs.si.satatt.MainActivity;
import cs.si.satatt.R;
import cs.si.stavor.R;
import cs.si.stavor.MainActivity;
import cs.si.stavor.app.Parameters;
import cs.si.stavor.simulator.Simulator;
import cs.si.stavor.web.WebAppInterface;
import android.annotation.SuppressLint;
import android.app.Activity;
import android.os.Bundle;
......@@ -26,7 +27,6 @@ import android.widget.SlidingDrawer;
import android.widget.TextView;
import android.widget.SlidingDrawer.OnDrawerCloseListener;
import android.widget.SlidingDrawer.OnDrawerOpenListener;
import app.Parameters;
/**
* Fragment with the visualization browser and hud panel
......
package fragments;
package cs.si.stavor.fragments;
import cs.si.satatt.MainActivity;
import cs.si.satatt.R;
import cs.si.stavor.R;
import cs.si.stavor.MainActivity;
import android.support.v7.app.ActionBarActivity;
import android.app.Activity;
import android.support.v7.app.ActionBar;
......
package fragments;
package cs.si.stavor.fragments;
import cs.si.stavor.simulator.Simulator;
import android.app.Fragment;
import android.os.Bundle;
import simulator.Simulator;
/**
* Fragment to store information when restarting app (e.g. rotating device)
......
package fragments;
package cs.si.stavor.fragments;
import mission.Mission;
import mission.MissionAndId;
import simulator.Simulator;
import simulator.SimulatorStatus;
import cs.si.satatt.MainActivity;
import cs.si.satatt.R;
import cs.si.satatt.SatAttApplication;
import database.MissionReaderDbHelper;
import database.MissionReaderContract.MissionEntry;
import database.SerializationUtil;
import dialogs.DeleteMissionDialogFragment;
import cs.si.stavor.R;
import cs.si.stavor.MainActivity;
import cs.si.stavor.StavorApplication;
import cs.si.stavor.database.MissionReaderDbHelper;
import cs.si.stavor.database.SerializationUtil;
import cs.si.stavor.database.MissionReaderContract.MissionEntry;
import cs.si.stavor.dialogs.DeleteMissionDialogFragment;
import cs.si.stavor.mission.Mission;
import cs.si.stavor.mission.MissionAndId;
import cs.si.stavor.simulator.Simulator;
import cs.si.stavor.simulator.SimulatorStatus;
import android.annotation.SuppressLint;
import android.app.Activity;
import android.app.DialogFragment;
......@@ -86,7 +86,7 @@ public final class SimulatorFragment extends Fragment implements LoaderCallbacks
View rootView = inflater.inflate(R.layout.sim, container,
false);
sharedPref = this.getActivity().getSharedPreferences("cs.si.satatt", Context.MODE_PRIVATE);
sharedPref = this.getActivity().getSharedPreferences("cs.si.stavor", Context.MODE_PRIVATE);
simulator = ((MainActivity)getActivity()).getSimulator();
......@@ -228,7 +228,7 @@ public final class SimulatorFragment extends Fragment implements LoaderCallbacks
MissionEntry.COLUMN_NAME_CLASS
};
Cursor c = ((SatAttApplication)((MainActivity)getActivity()).getApplication()).db
Cursor c = ((StavorApplication)((MainActivity)getActivity()).getApplication()).db
.query(
MissionEntry.TABLE_NAME, // The table to query
projection, // The columns to return
......@@ -325,7 +325,7 @@ public final class SimulatorFragment extends Fragment implements LoaderCallbacks
@Override
public Loader<Cursor> onCreateLoader(int arg0, Bundle arg1) {
MissionReaderDbHelper db_help = ((SatAttApplication)((MainActivity)getActivity()).getApplication()).db_help;
MissionReaderDbHelper db_help = ((StavorApplication)((MainActivity)getActivity()).getApplication()).db_help;
String sql="SELECT _ID, name, description FROM "+MissionEntry.TABLE_NAME+" ORDER BY name ASC;";
String[] params = null;
......@@ -342,7 +342,7 @@ public final class SimulatorFragment extends Fragment implements LoaderCallbacks
String activeMissionName = "";
@Override
public void onLoadFinished(Loader<Cursor> loader, Cursor cursor) {
((SatAttApplication)((MainActivity)getActivity()).getApplication()).loader=(SQLiteCursorLoader)loader;
((StavorApplication)((MainActivity)getActivity()).getApplication()).loader=(SQLiteCursorLoader)loader;
adapter.changeCursor(cursor);
if (cursor != null && cursor.getCount() > 0) {
......
package fragments;
package cs.si.stavor.fragments;
import org.xwalk.core.XWalkSettings;