Exercise2: Develop an app which allows the user to save the locations in terms of longitude and latitude. Main activity looks as shown below. Add button adds locations in a list. Clear clears the edit texts. Map button takes the user to a map activity. Latitude Longitude Add Clear MAP 15:23 Map Activity reads the locations from the list filled in the main activity and places the markers on the google map. Add a long click listener to the map in the maps activity that places a new marker on the map and also new location is added to the locations list. Kazakhstan Uzbekistan Turkmenistan Afghanistan Pakistan 15:50 1
Added by Wesley S.
Close
Step 1
First, we need to create the main activity layout. It should have three buttons (Add, Clear, Map) and two EditText fields for latitude and longitude input. The layout could look like this: ```xml <LinearLayout android:layout_width="match_parent" Show more…
Show all steps
Your feedback will help us improve your experience
Shashank Pandey and 74 other AP CS educators are ready to help you.
Ask a new question
Labs
Want to see this concept in action?
Explore this concept interactively to see how it behaves as you change inputs.
Key Concepts
Recommended Videos
Global Positioning System (GPS). The GPS network consists of 24 satellites, each of which makes two orbits around the earth per day. Each satellite transmits a 50.0 -W (or even less) sinusoidal electromagnetic signal at two frequencies, one of which is 1575.42 MHZ. Assume that a satellite transmits half of its power at each frequency and that the waves travel uniformly in a downward hemisphere. (a) What average intensity does a GPS receiver on the ground, directly below the satellite, receive? (Hint: First use Newton's laws to find the altitude of the satellite. (b) What are the amplitudes of the electric and magnetic fields at the GPS receiver in part (a), and how long does it take the signal to reach the receiver? (c) If the receiver is a square panel 1.50$\mathrm { cm }$ on a side that absorbs all of the beam, what average pressure does the signal exert on it? (d) What wavelength must the receiver be tuned to?
Umar Sohail Q.
On many cell phones with GPS, an approximate location can be given before the GPS signal is received. This is done by a process called triangulation, which works by using the distance from two known points. Suppose there are two cell phone towers within range of you, located 6000 feet apart along a straight highway that runs east to west, and you know you are north of the highway. Based on the signal delay, it can be determined you are 5050 feet from the first tower, and 2420 feet from the second. Determine the angle, θ, between your line of sight to the first tower and the highway to the nearest tenth of a degree. (A calculator is needed for this question)
Michael F.
Recommended Textbooks
Computer Science and Information Technology
Introduction to Programming Using Python
Computer Science - An Overview
18,000,000+
Students on Numerade
Trusted by students at 8,000+ universities
Watch the video solution with this free unlock.
EMAIL
PASSWORD