Select to view content in your preferred language

GeoDatabase

1308
7
07-18-2017 03:30 AM
JohnMcoy
Occasional Contributor

Hello community, I have a question about the geodatabase. So I have a .geodatabase file containing from 33 tables, each table has different columns and field values. I'm creating an Android app and want to get the right values from the selected table. How can I achieve it ? 

Tags (2)
0 Kudos
7 Replies
JohnMcoy
Occasional Contributor

Any ideas ?  I think I have to use queryFeaturesAsync. At he moment I have this code :

final Geodatabase geodatabase = new Geodatabase(geodatabaseFilePath);
        geodatabase.addDoneLoadingListener(new Runnable() {
            @Override
            public void run() {
                FeatureTable featureTable = geodatabase.getGeodatabaseFeatureTable("TABLE_NAME");
                featureTable.getFields();
            }
        });
        geodatabase.loadAsync();
0 Kudos
AlexanderNohe1
Honored Contributor

That looks correct to me.  You can also use getGeodatabaseFeatureTables() Geodatabase| arcgis-android  to get the information on which tables are available.

0 Kudos
JohnMcoy
Occasional Contributor

No, I don`t get, the  table values.

0 Kudos
AlexanderNohe1
Honored Contributor

You don't get the tables or the data the tables hold?

0 Kudos
JohnMcoy
Occasional Contributor

I didn`t get both...

0 Kudos
JohnMcoy
Occasional Contributor

I do not understand how to get all the tables, and then pick up the required values

0 Kudos
JohnMcoy
Occasional Contributor
final Geodatabase geodatabase = new Geodatabase(geoDatabaseFilePath);
        geodatabase.addDoneLoadingListener(new Runnable() {
            @Override
            public void run() {
                for (GeodatabaseFeatureTable geoDbTable : geodatabase.getGeodatabaseFeatureTables()){
                    


                     //How to finish here ?? 
               


                 }
            }

        });
        geodatabase.loadAsync();
0 Kudos