title: Listview selection sent back to microsoft server database
body: <p>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?</p>
  <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
  &lt;LinearLayout xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;    
  xmlns:app=&quot;http://schemas.android.com/apk/res-auto&quot;    
  xmlns:tools=&quot;http://schemas.android.com/tools&quot;    android:layout_width=&quot;match_parent&quot;
  android:layout_height=&quot;match_parent&quot;
  tools:context=&quot;.MainActivity&quot;
  android:orientation=&quot;vertical&quot;&gt;
  
  
  
  
  &lt;SearchView
      android:id=&quot;@+id/searchView&quot;
      android:layout_width=&quot;match_parent&quot;
      android:layout_height=&quot;80dp&quot;
      android:background=&quot;#F83E31&quot;
      android:iconifiedByDefault=&quot;false&quot;
      android:queryHint=&quot;Search Employee Name&quot;&gt;
  
  
  &lt;/SearchView&gt;
  
  &lt;ListView
      android:id=&quot;@+id/ListView&quot;
      android:layout_width=&quot;match_parent&quot;
      android:layout_height=&quot;583dp&quot;
      android:background=&quot;#6DE4E4E4&quot;
      android:choiceMode=&quot;multipleChoice&quot;
      android&gt;
  
  
  &lt;/ListView&gt;
  
  &lt;Button
      android:id=&quot;@+id/button&quot;
      android:layout_width=&quot;match_parent&quot;
      android:layout_height=&quot;70dp&quot;
  
      android:backgroundTint=&quot;#DC1010&quot;
      android:text=&quot;Open Machine Search --&gt;&quot;
      android:textAppearance=&quot;@style/TextAppearance.AppCompat.Medium&quot;
      android:textColor=&quot;@color/black&quot;
      android:textSize=&quot;25sp&quot;
      android:textStyle=&quot;bold&quot;
      android:clickable= &quot;true&quot;
      app:strokeColor=&quot;#EF1414&quot; /&gt;
  
  
  
   &lt;/LinearLayout&gt;
  </code></pre>