Offline Map using Runtime Content

3244
5
11-17-2014 02:20 AM
HaniDraidi
Occasional Contributor II

Hello all, I followed the steps in this link to create an offline map that contains a streets layer on my android device, everything went well; but when running the app, it does not show all the streets of the dataset. What might be the issue here?

1- The layer in ArcMap

Clip_836.jpg

2- The same layer on the android device (after exporting the data as Runtime content)

Screenshot_2014-11-17-12-08-07.png

0 Kudos
5 Replies
MengyiGuo
Occasional Contributor

Is the issue happen when you retrieve runtime content in your Android app?

What's the type of your layer?

HaniDraidi
Occasional Contributor II

Thank you for interest Mengyie,

Yes this issue appears when retrieving the runtime content in the app.

The layer is a "line" feature class.

0 Kudos
MengyiGuo
Occasional Contributor

How many layers do you have in this geodatabase file?

The code should be something like...

//Open the geodatabase file

Geodatabase geodatabase = new Geodatabase("{/path/to/geodatabase}");

private GeodatabaseFeatureTable geodatabaseFeatureTable;  //get the geodatabase feature table

geodatabaseFeatureTable = geodatabase.getGeodatabaseFeatureTableByLayerId(0);  //create a feature layer

featureLayer = new FeatureLayer(geodatabaseFeatureTable);

mMapView.addLayer(featureLayer);

However, I think if you have part of the layer showed up, you probably known how to do this...

I think the issue may come from the runtime content, check if there is some features that is not supported by runtime content.

For feature and tabular data to be included in the Runtime content, there are a few restrictions to keep in mind:

  • Only feature layers, tables, and relationship classes are supported.
  • If a feature layer references or participates in a relationship class that references unsupported data, the layer will not be included in the Runtime content.
  • All of the layers in the current map must come from the same workspace.
HaniDraidi
Occasional Contributor II

Dear Mengyi, your input is highly appreciated.

I have only one layer in the GDB.

I wrote the code exactly as you have mentioned above

None of these restrictions is applicable in my case.

0 Kudos
MengyiGuo
Occasional Contributor

No problem.

I will say test your code with the sample data(You can generate a runtime content from OfflineEditor sample) and see if it shows all the features.

And then if it's possible, test your runtime content maybe with another API and see if it works.

But I doubt the issue comes from the runtime content.

0 Kudos