<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Download Related Table with the feature service layers in ArcGIS Runtime SDK for Android Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/download-related-table-with-the-feature-service/m-p/470363#M3199</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a feature service that include a layer with its related stand alone table, I use the following code to download the layer to my android device:&lt;/P&gt;&lt;P&gt; private void download() {&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; // a- Create the GeodatabaseTask from URL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; // I- Define the Dialog&lt;/P&gt;&lt;P&gt;&amp;nbsp; dialog2 = ProgressDialog.show(mMapView.getContext(),&lt;/P&gt;&lt;P&gt;&amp;nbsp; "Download Data", "Downloading data to your local device");&lt;/P&gt;&lt;P&gt;&amp;nbsp; dialog2.setCanceledOnTouchOutside(true);&lt;/P&gt;&lt;P&gt;&amp;nbsp; dialog2.show();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; // II- Create the GDB Task&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; gdbsync= new GeodatabaseSyncTask(url, null);&lt;/P&gt;&lt;P&gt;&amp;nbsp; gdbsync.fetchFeatureServiceInfo(new CallbackListener&amp;lt;FeatureServiceInfo&amp;gt;() {&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; public void onError(Throwable e) {&lt;/P&gt;&lt;P&gt;&amp;nbsp; // TODO Auto-generated method stub&lt;/P&gt;&lt;P&gt;&amp;nbsp; showToast("Unable to get service information! Please Check Internet Connection");&lt;/P&gt;&lt;P&gt;&amp;nbsp; dialog2.dismiss();&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; public void onCallback(FeatureServiceInfo objs) {&lt;/P&gt;&lt;P&gt;&amp;nbsp; // TODO Auto-generated method stub&lt;/P&gt;&lt;P&gt;&amp;nbsp; if(objs.isSyncEnabled()){&lt;/P&gt;&lt;P&gt;&amp;nbsp; creategdb(objs);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; private void creategdb(FeatureServiceInfo objs) {&lt;/P&gt;&lt;P&gt;&amp;nbsp; // TODO Auto-generated method stub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; /*GenerateGeodatabaseParameters params = new GenerateGeodatabaseParameters&lt;/P&gt;&lt;P&gt;&amp;nbsp; (objs, mMapView.getExtent(), mMapView.getSpatialReference());*/&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; GenerateGeodatabaseParameters params = new GenerateGeodatabaseParameters(objs.getLayerIds(), mMapView.getExtent(),mMapView.getSpatialReference(), false, SyncModel.GEODATABASE);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; //GenerateGeodatabaseParameters params = new GenerateGeodatabaseParameters(objs);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; // Define a callback that is triggered when the task is finished&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; CallbackListener&amp;lt;String&amp;gt; gdbresponse = new CallbackListener&amp;lt;String&amp;gt;() {&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; public void onError(Throwable e) {&lt;/P&gt;&lt;P&gt;&amp;nbsp; // TODO Auto-generated method stub&lt;/P&gt;&lt;P&gt;&amp;nbsp; dialog2.dismiss();&lt;/P&gt;&lt;P&gt;&amp;nbsp; //showToast("An Error Happened while downloading the data!");&lt;/P&gt;&lt;P&gt;&amp;nbsp; showToast(e.getCause().toString());&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; public void onCallback(String objs) {&lt;/P&gt;&lt;P&gt;&amp;nbsp; // TODO Auto-generated method stub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; updatefeaturelayer(path);&lt;/P&gt;&lt;P&gt;&amp;nbsp; dialog2.dismiss();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp; };&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; GeodatabaseStatusCallback statuscallback =new GeodatabaseStatusCallback() {&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; public void statusUpdated(GeodatabaseStatusInfo status) {&lt;/P&gt;&lt;P&gt;&amp;nbsp; // TODO Auto-generated method stub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp; };&lt;/P&gt;&lt;P&gt;&amp;nbsp; submit(params,path,statuscallback,gdbresponse);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp; });&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, the layer's data is only downloaded without the related stand alone table.&lt;/P&gt;&lt;P&gt;How can I download the related table along with the layer?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 01 Mar 2016 13:23:30 GMT</pubDate>
    <dc:creator>HaniDraidi</dc:creator>
    <dc:date>2016-03-01T13:23:30Z</dc:date>
    <item>
      <title>Download Related Table with the feature service layers</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/download-related-table-with-the-feature-service/m-p/470363#M3199</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a feature service that include a layer with its related stand alone table, I use the following code to download the layer to my android device:&lt;/P&gt;&lt;P&gt; private void download() {&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; // a- Create the GeodatabaseTask from URL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; // I- Define the Dialog&lt;/P&gt;&lt;P&gt;&amp;nbsp; dialog2 = ProgressDialog.show(mMapView.getContext(),&lt;/P&gt;&lt;P&gt;&amp;nbsp; "Download Data", "Downloading data to your local device");&lt;/P&gt;&lt;P&gt;&amp;nbsp; dialog2.setCanceledOnTouchOutside(true);&lt;/P&gt;&lt;P&gt;&amp;nbsp; dialog2.show();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; // II- Create the GDB Task&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; gdbsync= new GeodatabaseSyncTask(url, null);&lt;/P&gt;&lt;P&gt;&amp;nbsp; gdbsync.fetchFeatureServiceInfo(new CallbackListener&amp;lt;FeatureServiceInfo&amp;gt;() {&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; public void onError(Throwable e) {&lt;/P&gt;&lt;P&gt;&amp;nbsp; // TODO Auto-generated method stub&lt;/P&gt;&lt;P&gt;&amp;nbsp; showToast("Unable to get service information! Please Check Internet Connection");&lt;/P&gt;&lt;P&gt;&amp;nbsp; dialog2.dismiss();&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; public void onCallback(FeatureServiceInfo objs) {&lt;/P&gt;&lt;P&gt;&amp;nbsp; // TODO Auto-generated method stub&lt;/P&gt;&lt;P&gt;&amp;nbsp; if(objs.isSyncEnabled()){&lt;/P&gt;&lt;P&gt;&amp;nbsp; creategdb(objs);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; private void creategdb(FeatureServiceInfo objs) {&lt;/P&gt;&lt;P&gt;&amp;nbsp; // TODO Auto-generated method stub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; /*GenerateGeodatabaseParameters params = new GenerateGeodatabaseParameters&lt;/P&gt;&lt;P&gt;&amp;nbsp; (objs, mMapView.getExtent(), mMapView.getSpatialReference());*/&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; GenerateGeodatabaseParameters params = new GenerateGeodatabaseParameters(objs.getLayerIds(), mMapView.getExtent(),mMapView.getSpatialReference(), false, SyncModel.GEODATABASE);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; //GenerateGeodatabaseParameters params = new GenerateGeodatabaseParameters(objs);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; // Define a callback that is triggered when the task is finished&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; CallbackListener&amp;lt;String&amp;gt; gdbresponse = new CallbackListener&amp;lt;String&amp;gt;() {&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; public void onError(Throwable e) {&lt;/P&gt;&lt;P&gt;&amp;nbsp; // TODO Auto-generated method stub&lt;/P&gt;&lt;P&gt;&amp;nbsp; dialog2.dismiss();&lt;/P&gt;&lt;P&gt;&amp;nbsp; //showToast("An Error Happened while downloading the data!");&lt;/P&gt;&lt;P&gt;&amp;nbsp; showToast(e.getCause().toString());&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; public void onCallback(String objs) {&lt;/P&gt;&lt;P&gt;&amp;nbsp; // TODO Auto-generated method stub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; updatefeaturelayer(path);&lt;/P&gt;&lt;P&gt;&amp;nbsp; dialog2.dismiss();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp; };&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; GeodatabaseStatusCallback statuscallback =new GeodatabaseStatusCallback() {&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; public void statusUpdated(GeodatabaseStatusInfo status) {&lt;/P&gt;&lt;P&gt;&amp;nbsp; // TODO Auto-generated method stub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp; };&lt;/P&gt;&lt;P&gt;&amp;nbsp; submit(params,path,statuscallback,gdbresponse);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp; });&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, the layer's data is only downloaded without the related stand alone table.&lt;/P&gt;&lt;P&gt;How can I download the related table along with the layer?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Mar 2016 13:23:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/download-related-table-with-the-feature-service/m-p/470363#M3199</guid>
      <dc:creator>HaniDraidi</dc:creator>
      <dc:date>2016-03-01T13:23:30Z</dc:date>
    </item>
    <item>
      <title>Re: Download Related Table with the feature service layers</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/download-related-table-with-the-feature-service/m-p/470364#M3200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See the reply to this post: &lt;A href="https://community.esri.com/thread/173089"&gt;Download Related Table&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Mar 2016 22:48:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/download-related-table-with-the-feature-service/m-p/470364#M3200</guid>
      <dc:creator>WillCrick</dc:creator>
      <dc:date>2016-03-28T22:48:22Z</dc:date>
    </item>
  </channel>
</rss>

