08-16-2017, 09:19 PM
sorce code of mobile location alarm
The Android location Alarm application provides some innovative featuresRetrieves the user s current geological coordinates.
The user may set an alarm for a particular geographical location through his android phone.
The android alarm can also be associated with a reminder message.
As the user reaches the destined location, the alarm rings and even the associated message flashes on your mobile screen.
The user may set, reset, disable, edit and set duration of the alarms as he wishes.
User may view the destined locations on a map to check how far he is from the desired location.
Get this software engineering project only on NevonProjects
Additional Benifits:
Blue book (basic introduction as per university format)
Powerpoint Presentation
Project Black book (complete guide of the project)
[Edit]
Hide Copy Code
var R = 6371; // earth's radius in kilometers (km)
var dLat = (lat2-lat1).toRad(); // Conversion to radians can also be achieved by lat1 * Math.PI / 180
var dLon = (lon2-lon1).toRad(); // Conversion to radians can also be achieved by lat1 * Math.PI / 180
var lat1 = lat1.toRad(); // Conversion to radians can also be achieved by lat1 * Math.PI / 180
var lat2 = lat2.toRad(); // Conversion to radians can also be achieved by lat2 * Math.PI / 180
var a = Math.sin(dLat/2) * Math.sin(dLat/2) +
Math.sin(dLon/2) * Math.sin(dLon/2) * Math.cos(lat1) * Math.cos(lat2);
var c = 2 * Math.atan2(Math.sqrt(a), Math.sqrt(1-a));
var d = R * c; // This now holds the distance expressed in km