Select to view content in your preferred language

Offline Map using Runtime Content

3416
5
11-17-2014 02:20 AM
HaniDraidi
Frequent Contributor

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
Deactivated User

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

What's the type of your layer?

HaniDraidi
Frequent Contributor

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
Deactivated User

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
Frequent Contributor

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
Deactivated User

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