1
0
mirror of https://github.com/bspeice/itcs4180 synced 2024-11-16 12:28:15 -05:00

Added some comments, fixed spelling, removed rest of extra unused code.

This commit is contained in:
tokugawa 2014-04-29 14:52:40 -04:00
parent 0ee4a4ffe2
commit ce42163569
5 changed files with 7 additions and 7 deletions

View File

@ -0,0 +1,3 @@
arrow_up.png: http://findicons.com/search/up-arrow
checkbox_checked: http://findicons.com/search/checkbox
checkbox_unchecked: http://findicons.com/search/checkbox

View File

@ -19,7 +19,7 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_alignParentTop="true" android:layout_alignParentTop="true"
android:layout_toRightOf="@+id/imgIsFound" android:layout_toRightOf="@+id/imgIsFound"
android:text="TextView" android:text="@string/default_text"
android:textSize="20sp" /> android:textSize="20sp" />
<TextView <TextView
@ -28,7 +28,7 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_alignLeft="@+id/txtName" android:layout_alignLeft="@+id/txtName"
android:layout_below="@+id/txtName" android:layout_below="@+id/txtName"
android:text="TextView" android:text="@string/default_text"
android:textColor="@android:color/secondary_text_light" android:textColor="@android:color/secondary_text_light"
android:textSize="15sp" /> android:textSize="15sp" />

View File

@ -4,7 +4,7 @@ package edu.uncc.scavenger;
* Bradlee Speice, Brandon Rodenmayer * Bradlee Speice, Brandon Rodenmayer
* ITIS 4180 * ITIS 4180
* UNCCScavenger (NinerFinder) * UNCCScavenger (NinerFinder)
* CompassActivity.java * BitmapAccess.java
*/ */
//Reference: stackoverflow.com/questions/19978100/how-to-save-bitmap-on-internal-storage-download-from-internet //Reference: stackoverflow.com/questions/19978100/how-to-save-bitmap-on-internal-storage-download-from-internet

View File

@ -109,7 +109,6 @@ public class CompassActivity extends Activity implements SensorEventListener
return true; return true;
} }
@Override @Override
public void onSensorChanged(SensorEvent event) public void onSensorChanged(SensorEvent event)
{ {
@ -133,6 +132,7 @@ public class CompassActivity extends Activity implements SensorEventListener
SensorManager.getRotationMatrix(rotation, inclination, gravity, magneticField); SensorManager.getRotationMatrix(rotation, inclination, gravity, magneticField);
SensorManager.getOrientation(rotation, compassValues); SensorManager.getOrientation(rotation, compassValues);
//azimuth is compassValues[0]
//Calculate true north and angle to desired location //Calculate true north and angle to desired location
float trueHeading = (float)(Math.toDegrees(compassValues[0]) + locationListener.getDeclination()); float trueHeading = (float)(Math.toDegrees(compassValues[0]) + locationListener.getDeclination());
//Calculate bearing to search location //Calculate bearing to search location

View File

@ -24,9 +24,7 @@ import android.location.LocationManager;
import android.net.Uri; import android.net.Uri;
import android.os.AsyncTask; import android.os.AsyncTask;
import android.os.Bundle; import android.os.Bundle;
import android.util.Log;
import android.view.Menu; import android.view.Menu;
import android.view.MenuItem;
import android.view.View; import android.view.View;
import android.view.View.OnClickListener; import android.view.View.OnClickListener;
import android.widget.Button; import android.widget.Button;
@ -56,7 +54,6 @@ public class SearchActivity extends Activity {
riddleView = (TextView)findViewById(R.id.riddleView); riddleView = (TextView)findViewById(R.id.riddleView);
restLocation = (RestLocation)(getIntent().getSerializableExtra("restLocation")); restLocation = (RestLocation)(getIntent().getSerializableExtra("restLocation"));
//Log.d("restLocation", restLocation.getName());
locationText.setText(restLocation.getName()); locationText.setText(restLocation.getName());
riddleView.setText(restLocation.getRiddle()); riddleView.setText(restLocation.getRiddle());