For my project 3, I was gonna do something with tilting, but I will be doing GPS for special go to spots in different states, but for the sake of time and nearing the end of semester, I will only be using parts of california. Image down below is how the app should look like.
How will the app work:
The GPS will be like the traditional GPS system, it will show where you are, how far away you are from the destination and your movement, which in this case I will be using the ACCELEROMETER feature within andriod studio
The gps has three sources of location data:
1. What kind of data will you collect for sensors?
I would have to collect the location of each vacation hidden spots and the distance between where
we are to the destination, in this case I will be using the distance formula and I would have to
use the phone's motion sensor for when it moves to show if we are getting closer to the desitnation.
2. What is the range for possible values?
As far as distance, the range can be anywhere from like 1 miles to 1000+ miles. It really all depends
on where the user is located and where they want to go.
3. how will you test your sensors? I would have to drive a little bit to see if the distance get smaller, however I will not be driving all the way to a certain spot.
Hows did you push your project to github?
I could not push my project to github. It says that my credentials are wrong even though i
know it is right
I was only able to upload the files I was working on. I had to copy path and droagged them into GitHub, however when I tried to grab the whole project it was missing certain folders, so I am just showcasing files I worked on. Both folders does not work.
ArieBattle's GitHubWhen I had added the codes, shown below, I am getting the error java.lang.NullPointerExceptionAttempt to invoke virtual method'doubleandroid.location.Location. getLatitude()' on a null object reference and when I run the app it tells me that my "GPS keeps stopping". As of right now, 05/08/2021, I still not have figured out my error
Another, new problem that arised as of 05/09/2021, I had fixed my GPS Menu and now, it is saying that "GPS_Menu keeps stopping". This I'm not sure about, but in total I have made 3 different menus trying out different ways to get the spinner to work, but all fails.
What I have accomplished so far is to display the Latitude, Longtitude, Altitude, Accuracy, Speed,
and the address, but nothgin displays just yet becasue of the errors I was getting with
NullPointerException showed in the section above. what's suppose to happen is give the
oputput of where you currently at. I also incorporated the GPS/Save power, which lets you turn it off or on.
In the third picture, I have the drop down menu created, however it does not display anything due to errors
As of right now, I have no finished product. What you see in "Update Result" is what I have, but in order for the GPS to work I have to comment out the error that gets the the text view object and turns it into a string.