'Listview selection sent back to microsoft server database

I have a listview that i want to select a name on it and save the selection to a server database that has already been linked. I have the listview created and displaying names but i cant figure out the code needed to save it and send to database. Below is the code for the activity. Has anyone tried this before?

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"    
xmlns:app="http://schemas.android.com/apk/res-auto"    
xmlns:tools="http://schemas.android.com/tools"    android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MainActivity"
android:orientation="vertical">




<SearchView
    android:id="@+id/searchView"
    android:layout_width="match_parent"
    android:layout_height="80dp"
    android:background="#F83E31"
    android:iconifiedByDefault="false"
    android:queryHint="Search Employee Name">


</SearchView>

<ListView
    android:id="@+id/ListView"
    android:layout_width="match_parent"
    android:layout_height="583dp"
    android:background="#6DE4E4E4"
    android:choiceMode="multipleChoice"
    android>


</ListView>

<Button
    android:id="@+id/button"
    android:layout_width="match_parent"
    android:layout_height="70dp"

    android:backgroundTint="#DC1010"
    android:text="Open Machine Search -->"
    android:textAppearance="@style/TextAppearance.AppCompat.Medium"
    android:textColor="@color/black"
    android:textSize="25sp"
    android:textStyle="bold"
    android:clickable= "true"
    app:strokeColor="#EF1414" />



 </LinearLayout>


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source