Skip to content
This repository has been archived by the owner on Mar 17, 2019. It is now read-only.

Commit

Permalink
icons correct sizes, fixed field restrictions
Browse files Browse the repository at this point in the history
  • Loading branch information
bdonald25 committed Jun 4, 2015
1 parent de53357 commit 77ee095
Show file tree
Hide file tree
Showing 62 changed files with 48 additions and 49 deletions.
2 changes: 1 addition & 1 deletion Apps/Motion/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

<application
android:allowBackup="true"
android:icon="@drawable/isense_graph"
android:icon="@mipmap/isense_graph"
android:label="@string/display_name" >

<service android:enabled="true" android:name="edu.uml.cs.isense.motion.RecordingService" />
Expand Down
Binary file removed Apps/Motion/ic_launcher-web.png
Binary file not shown.
Binary file added Apps/Motion/isense_graph-web.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed Apps/Motion/res/drawable-hdpi/ic_launcher.png
Binary file not shown.
Binary file removed Apps/Motion/res/drawable-hdpi/isense_graph.png
Binary file not shown.
Binary file removed Apps/Motion/res/drawable-mdpi/ic_launcher.png
Binary file not shown.
Binary file removed Apps/Motion/res/drawable-mdpi/isense_graph.png
Binary file not shown.
Binary file removed Apps/Motion/res/drawable-xhdpi/ic_launcher.png
Binary file not shown.
Binary file removed Apps/Motion/res/drawable-xxhdpi/ic_launcher.png
Binary file not shown.
Binary file removed Apps/Motion/res/drawable/isense_graph.png
Binary file not shown.
Binary file added Apps/Motion/res/mipmap-hdpi/isense_graph.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Apps/Motion/res/mipmap-mdpi/isense_graph.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Apps/Motion/res/mipmap-xhdpi/isense_graph.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Apps/Motion/res/mipmap-xxhdpi/isense_graph.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Apps/Motion/res/mipmap-xxxhdpi/isense_graph.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 4 additions & 8 deletions Apps/Motion/src/edu/uml/cs/isense/motion/Motion.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
import android.support.v4.view.PagerAdapter;
import android.support.v4.view.ViewPager;
import android.support.v7.app.ActionBarActivity;
import android.support.v7.app.AppCompatActivity;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
Expand Down Expand Up @@ -68,7 +69,7 @@
import edu.uml.cs.isense.waffle.Waffle;


public class Motion extends ActionBarActivity {
public class Motion extends AppCompatActivity {

public static final String DEFAULT_PROJ = "-1";
public static final int DEFAULT_RATE = 50;
Expand Down Expand Up @@ -222,14 +223,9 @@ public void run() {
startStop.setText("Hold to Start");
}

dataSetName = settings.getString(EnterName.Name_Key, "");
dataSetName = settings.getString(EnterName.Name_Key, "Motion");

if (dataSetName.length() == 0) {
Intent iEnterName = new Intent(this, EnterName.class);
startActivityForResult(iEnterName, RESULT_GOT_NAME);
} else {
nameB.setText(dataSetName);
}
nameB.setText(dataSetName);

String projId = ProjectManager.getProject(mContext);

Expand Down
3 changes: 3 additions & 0 deletions Apps/Motion/src/edu/uml/cs/isense/motion/PresetScreen.java
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,9 @@ public void onClick(View v) {
editor.putString(Presets.LAST_PRESET, Presets.GPS);

Intent resultIntent = new Intent();

resultIntent.putExtra(Presets.RATE, Presets.GPS_PROJECT_RATE);
resultIntent.putExtra(Presets.LENGTH, Presets.GPS_PROJECT_LENGTH);
resultIntent.putExtra(Presets.PROJECT, "-1");
setResult(Activity.RESULT_OK, resultIntent);

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package edu.uml.cs.isense.motion;

import android.annotation.SuppressLint;
import android.app.Notification;
import android.app.NotificationManager;
import android.app.PendingIntent;
Expand All @@ -22,11 +21,9 @@
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Locale;
import java.util.Timer;

import edu.uml.cs.isense.comm.API;
import edu.uml.cs.isense.dfm.DataFieldManager;
import edu.uml.cs.isense.motion.dialogs.EnterName;
import edu.uml.cs.isense.proj.ProjectManager;
import edu.uml.cs.isense.queue.QDataSet.Type;

Expand Down Expand Up @@ -82,7 +79,7 @@ public void onCreate() {
builder.setContentText("Recording Data");
builder.setTicker("Started Recording");
builder.setSmallIcon(R.drawable.ic_stat_name);
Bitmap bm = BitmapFactory.decodeResource(getResources(), R.drawable.ic_launcher);
Bitmap bm = BitmapFactory.decodeResource(getResources(), R.mipmap.isense_graph);
builder.setLargeIcon(bm);
builder.setContentIntent(pendingIntent);
builder.setOngoing(true);
Expand Down
3 changes: 2 additions & 1 deletion Apps/Motion/src/edu/uml/cs/isense/motion/dialogs/About.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@

import android.os.Bundle;
import android.support.v7.app.ActionBarActivity;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Button;
import edu.uml.cs.isense.motion.R;

public class About extends ActionBarActivity {
public class About extends AppCompatActivity {

@Override
public void onCreate(Bundle savedInstanceBundle) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,15 @@
import android.os.AsyncTask;
import android.os.Bundle;
import android.support.v7.app.ActionBarActivity;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import edu.uml.cs.isense.comm.API;
import edu.uml.cs.isense.motion.R;
import edu.uml.cs.isense.waffle.Waffle;

public class ContributorKeyDialog extends ActionBarActivity {
public class ContributorKeyDialog extends AppCompatActivity {

Button ok, cancel;
EditText keyField;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@
import android.app.Activity;
import android.os.Bundle;
import android.support.v7.app.ActionBarActivity;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Button;
import edu.uml.cs.isense.comm.Connection;
import edu.uml.cs.isense.motion.R;

public class DataActivity extends ActionBarActivity {
public class DataActivity extends AppCompatActivity {

private Button iSENSE_Button;
private Button discard_Button;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import android.content.SharedPreferences;
import android.os.Bundle;
import android.support.v7.app.ActionBarActivity;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;
import android.view.View;
import android.widget.Button;
Expand All @@ -14,7 +15,7 @@
import edu.uml.cs.isense.motion.Motion;
import edu.uml.cs.isense.motion.R;

public class DurationDialog extends ActionBarActivity {
public class DurationDialog extends AppCompatActivity {

Button ok, cancel;
EditText input;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,13 @@
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.ActionBarActivity;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
import edu.uml.cs.isense.motion.R;

public class MessageDialogTemplate extends ActionBarActivity {
public class MessageDialogTemplate extends AppCompatActivity {

Button pos, neg;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import android.content.SharedPreferences;
import android.os.Bundle;
import android.support.v7.app.ActionBarActivity;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
Expand All @@ -13,7 +14,7 @@
import edu.uml.cs.isense.motion.Motion;
import edu.uml.cs.isense.motion.R;

public class Presets extends ActionBarActivity {
public class Presets extends AppCompatActivity {
public static final String PROJECT = "project";
public static final String LENGTH = "length";
public static final String RATE = "rate";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,23 +1,18 @@
package edu.uml.cs.isense.motion.dialogs;

import android.app.Activity;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.support.v7.app.ActionBarActivity;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.RadioButton;
import android.widget.Spinner;

import edu.uml.cs.isense.motion.Motion;
import edu.uml.cs.isense.motion.R;

public class RateDialog extends ActionBarActivity {
public class RateDialog extends AppCompatActivity {

Button ok, cancel;
EditText input;
Spinner spinner;
int rate;

@Override
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
package edu.uml.cs.isense.motion.dialogs;

import android.app.Activity;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.support.v7.app.ActionBarActivity;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.view.ViewGroup.LayoutParams;
import android.widget.Button;
import android.widget.CheckedTextView;
import edu.uml.cs.isense.motion.R;

public class RecordSettings extends ActionBarActivity {
public class RecordSettings extends AppCompatActivity {

private boolean Xchecked = false, Ychecked = true, Zchecked = false,
Magchecked = false;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
package edu.uml.cs.isense.motion.dialogs;

import android.app.Activity;
import android.os.Bundle;
import android.support.v7.app.ActionBarActivity;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Button;
import edu.uml.cs.isense.motion.R;

public class ResetToDefaults extends ActionBarActivity {
public class ResetToDefaults extends AppCompatActivity {

Button reset, noreset;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@
import android.app.Activity;
import android.os.Bundle;
import android.support.v7.app.ActionBarActivity;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Button;
import edu.uml.cs.isense.motion.R;

public class SaveModeDialog extends ActionBarActivity {
public class SaveModeDialog extends AppCompatActivity {

Button ok, cancel;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,13 @@
import android.net.Uri;
import android.os.Bundle;
import android.support.v7.app.ActionBarActivity;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Button;
import edu.uml.cs.isense.motion.Motion;
import edu.uml.cs.isense.motion.R;

public class ViewData extends ActionBarActivity {
public class ViewData extends AppCompatActivity {

Button view, cancel;

Expand Down
6 changes: 5 additions & 1 deletion Apps/Pictures/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

<application
android:allowBackup="false"
android:icon="@drawable/ic_launcher"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name" >

<uses-library android:name="android.test.runner" />
Expand Down Expand Up @@ -100,6 +100,10 @@
android:name="edu.uml.cs.isense.queue.QueueAlter"
android:label="Alter Data Set"
android:theme="@style/AppThemeDialog" />
<activity
android:name="edu.uml.cs.isense.credentials.LoginOrKeyDialog"
android:label="Login or Key"
android:theme="@style/AppThemeDialog" />
<activity
android:name="edu.uml.cs.isense.queue.QueueEditData"
android:label="Edit Data"
Expand Down
Binary file added Apps/Pictures/ic_launcher-web.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Apps/Pictures/res/drawable-hdpi/ic_launcher.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Apps/Pictures/res/drawable-mdpi/ic_launcher.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Apps/Pictures/res/drawable-xhdpi/ic_launcher.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion Apps/Pictures/res/menu/menu.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
android:title="@string/project"
app:showAsAction="ifRoom"/>
<item android:id="@+id/MENU_ITEM_LOGIN"
android:title="@string/login"
android:title="@string/account"
app:showAsAction="ifRoom"/>
<item android:id="@+id/MENU_ITEM_CONTINUOUS"
android:title="@string/continuous"
Expand Down
Binary file added Apps/Pictures/res/mipmap-hdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Apps/Pictures/res/mipmap-mdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Apps/Pictures/res/mipmap-xhdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Apps/Pictures/res/mipmap-xxhdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Apps/Pictures/res/mipmap-xxxhdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion Apps/Pictures/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@

<string name="other">Other</string>
<string name="project">Project</string>
<string name="login">Account</string>
<string name="login">Login</string>
<string name="account">Account</string>
<string name="continuous">Continuously Take Photos</string>
<string name="interval">Time Interval (seconds):</string>
<string name="takePicContinuous">Press Here to Continuously Take Pictures</string>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@

import android.os.Bundle;
import android.support.v7.app.ActionBarActivity;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.CheckBox;
import android.widget.EditText;
import android.view.ViewGroup;

public class Continuous extends ActionBarActivity {
public class Continuous extends AppCompatActivity {

@Override
protected void onCreate(Bundle savedInstanceState) {
Expand Down
3 changes: 2 additions & 1 deletion Apps/Pictures/src/edu/uml/cs/isense/riverwalk/Pictures.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
import android.provider.Settings;
import android.support.v4.content.CursorLoader;
import android.support.v7.app.ActionBarActivity;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;
import android.view.Display;
import android.view.Menu;
Expand Down Expand Up @@ -62,7 +63,7 @@
import edu.uml.cs.isense.supplements.OrientationManager;
import edu.uml.cs.isense.waffle.Waffle;

public class Pictures extends ActionBarActivity implements LocationListener {
public class Pictures extends AppCompatActivity implements LocationListener {
private static final int CAMERA_PIC_REQUESTED = 101;
private static final int LOGIN_REQUESTED = 102;
private static final int NO_GPS_REQUESTED = 103;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ private void setBestPictureSize() {
int h = size.height, w = size.width;

// If this height/width is better, use it
if (h >= mHeight || w >= mWidth) {
if (w * h > mHeight * mWidth) {
mHeight = h;
mWidth = w;
continue;
Expand Down
2 changes: 1 addition & 1 deletion Apps/Writer/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

<application
android:allowBackup="true"
android:icon="@drawable/isense_manual"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
<activity
Expand Down
Binary file modified Apps/Writer/ic_launcher-web.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed Apps/Writer/res/drawable-hdpi/ic_launcher.png
Diff not rendered.
Binary file removed Apps/Writer/res/drawable-ldpi/isense_manual.png
Diff not rendered.
Binary file removed Apps/Writer/res/drawable-mdpi/ic_launcher.png
Diff not rendered.
Binary file removed Apps/Writer/res/drawable-mdpi/isense_manual.png
Diff not rendered.
Binary file removed Apps/Writer/res/drawable-xhdpi/ic_launcher.png
Diff not rendered.
Binary file removed Apps/Writer/res/drawable-xhdpi/isense_manual.png
Diff not rendered.
Binary file removed Apps/Writer/res/drawable-xxhdpi/ic_launcher.png
Diff not rendered.
Binary file removed Apps/Writer/res/drawable-xxhdpi/isense_manual.png
Diff not rendered.
Binary file added Apps/Writer/res/mipmap-hdpi/ic_launcher.png
Binary file added Apps/Writer/res/mipmap-mdpi/ic_launcher.png
Binary file added Apps/Writer/res/mipmap-xhdpi/ic_launcher.png
Binary file added Apps/Writer/res/mipmap-xxhdpi/ic_launcher.png
Binary file added Apps/Writer/res/mipmap-xxxhdpi/ic_launcher.png
11 changes: 3 additions & 8 deletions Apps/Writer/src/edu/uml/cs/isense/writer/ManualEntry.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@
import android.os.AsyncTask;
import android.os.Bundle;
import android.os.CountDownTimer;
import android.support.v7.app.ActionBar;
import android.support.v7.app.ActionBarActivity;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.CardView;
import android.text.InputType;
import android.view.LayoutInflater;
Expand Down Expand Up @@ -65,7 +64,7 @@
import edu.uml.cs.isense.queue.UploadQueue;
import edu.uml.cs.isense.waffle.Waffle;

public class ManualEntry extends ActionBarActivity implements LocationListener {
public class ManualEntry extends AppCompatActivity implements LocationListener {
public static Context mContext;
private API api;
private Boolean useDev = false;
Expand Down Expand Up @@ -181,10 +180,6 @@ public void onClick(View v) {

});

// Initialize action bar customization for API >= 11
if (android.os.Build.VERSION.SDK_INT >= 11) {
ActionBar bar = getSupportActionBar();
}

datapointsLayout = (LinearLayout) findViewById(R.id.datapoints_ll);
scrollView = (ScrollView) findViewById(R.id.datapoints_sv);
Expand Down Expand Up @@ -472,7 +467,7 @@ public void run() {

} else if (field.type == RProjectField.TYPE_TEXT) {
//if no restrictions we get back a string "null"
if (field.restrictions == "null") {
if (field.restrictions.equals("[]")) {
ViewGroup singlefield = new RelativeLayout(mContext);
inflater.inflate(R.layout.field, singlefield);

Expand Down
Binary file removed Apps/Writer/writer.png
Diff not rendered.

0 comments on commit 77ee095

Please sign in to comment.