Java Android Program that Accepts a Location from the User, Run in the Background, and Notifies the User when he/she is within 1Km from that Location

Here is source code of the Program to demonstrate a Program that Accepts a Location from the User, Run in the Background, and Notifies the User when he/she is within 1Km from that Location in Android. The program is successfully compiled and run on a Windows system using Eclipse Ide. The program output is also shown below.

<RelativeLayoutxmlns:android="http://schemas.android.com/apk/res/android"xmlns:tools="http://schemas.android.com/tools"android:layout_width="match_parent"android:layout_height="match_parent"android:paddingBottom="@dimen/activity_vertical_margin"android:paddingLeft="@dimen/activity_horizontal_margin"android:paddingRight="@dimen/activity_horizontal_margin"android:paddingTop="@dimen/activity_vertical_margin"tools:context=".MainActivity"><TextViewandroid:id="@+id/textView1"android:layout_width="wrap_content"android:layout_height="wrap_content"android:layout_alignParentLeft="true"android:layout_alignParentRight="true"android:layout_alignParentTop="true"android:layout_marginTop="28dp"android:text="Enter Destination Latitude"android:textAppearance="?android:attr/textAppearanceMedium"/><EditTextandroid:id="@+id/dest_latitude"android:layout_width="wrap_content"android:layout_height="wrap_content"android:layout_alignParentLeft="true"android:layout_alignParentRight="true"android:layout_below="@+id/textView1"android:layout_marginTop="18dp"android:ems="10"android:inputType="numberDecimal"><requestFocus/></EditText><TextViewandroid:id="@+id/textView2"android:layout_width="wrap_content"android:layout_height="wrap_content"android:layout_alignParentLeft="true"android:layout_alignRight="@+id/dest_latitude"android:layout_below="@+id/dest_latitude"android:layout_marginTop="34dp"android:text="Enter Destination Longitude"android:textAppearance="?android:attr/textAppearanceMedium"/><EditTextandroid:id="@+id/dest_lon"android:layout_width="wrap_content"android:layout_height="wrap_content"android:layout_alignLeft="@+id/textView2"android:layout_alignRight="@+id/textView2"android:layout_below="@+id/textView2"android:ems="10"android:inputType="numberDecimal"/><Buttonandroid:id="@+id/start"android:layout_width="wrap_content"android:layout_height="wrap_content"android:layout_alignLeft="@+id/dest_lon"android:layout_alignRight="@+id/dest_lon"android:layout_below="@+id/dest_lon"android:layout_marginTop="29dp"android:text="Start"/><TextViewandroid:id="@+id/textView3"android:layout_width="wrap_content"android:layout_height="wrap_content"android:layout_alignLeft="@+id/end"android:layout_below="@+id/start"android:layout_marginTop="24dp"android:textColor="@android:color/darker_gray"android:text="Start Again Once reached within 1km of the Destination Point"/></RelativeLayout>