mirror of
https://github.com/bspeice/itcs4180
synced 2024-12-04 13:18:16 -05:00
Added some comments, fixed spelling, removed rest of extra unused code.
This commit is contained in:
parent
0ee4a4ffe2
commit
ce42163569
3
UNCCScavenger/image_sources.txt
Normal file
3
UNCCScavenger/image_sources.txt
Normal 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
|
@ -19,7 +19,7 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentTop="true"
|
||||
android:layout_toRightOf="@+id/imgIsFound"
|
||||
android:text="TextView"
|
||||
android:text="@string/default_text"
|
||||
android:textSize="20sp" />
|
||||
|
||||
<TextView
|
||||
@ -28,7 +28,7 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignLeft="@+id/txtName"
|
||||
android:layout_below="@+id/txtName"
|
||||
android:text="TextView"
|
||||
android:text="@string/default_text"
|
||||
android:textColor="@android:color/secondary_text_light"
|
||||
android:textSize="15sp" />
|
||||
|
||||
|
@ -4,7 +4,7 @@ package edu.uncc.scavenger;
|
||||
* Bradlee Speice, Brandon Rodenmayer
|
||||
* ITIS 4180
|
||||
* UNCCScavenger (NinerFinder)
|
||||
* CompassActivity.java
|
||||
* BitmapAccess.java
|
||||
*/
|
||||
|
||||
//Reference: stackoverflow.com/questions/19978100/how-to-save-bitmap-on-internal-storage-download-from-internet
|
||||
|
@ -109,7 +109,6 @@ public class CompassActivity extends Activity implements SensorEventListener
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public void onSensorChanged(SensorEvent event)
|
||||
{
|
||||
@ -133,6 +132,7 @@ public class CompassActivity extends Activity implements SensorEventListener
|
||||
SensorManager.getRotationMatrix(rotation, inclination, gravity, magneticField);
|
||||
SensorManager.getOrientation(rotation, compassValues);
|
||||
|
||||
//azimuth is compassValues[0]
|
||||
//Calculate true north and angle to desired location
|
||||
float trueHeading = (float)(Math.toDegrees(compassValues[0]) + locationListener.getDeclination());
|
||||
//Calculate bearing to search location
|
||||
|
@ -24,9 +24,7 @@ import android.location.LocationManager;
|
||||
import android.net.Uri;
|
||||
import android.os.AsyncTask;
|
||||
import android.os.Bundle;
|
||||
import android.util.Log;
|
||||
import android.view.Menu;
|
||||
import android.view.MenuItem;
|
||||
import android.view.View;
|
||||
import android.view.View.OnClickListener;
|
||||
import android.widget.Button;
|
||||
@ -56,7 +54,6 @@ public class SearchActivity extends Activity {
|
||||
riddleView = (TextView)findViewById(R.id.riddleView);
|
||||
|
||||
restLocation = (RestLocation)(getIntent().getSerializableExtra("restLocation"));
|
||||
//Log.d("restLocation", restLocation.getName());
|
||||
|
||||
locationText.setText(restLocation.getName());
|
||||
riddleView.setText(restLocation.getRiddle());
|
||||
|
Loading…
Reference in New Issue
Block a user