|
POST
|
I don't understand your question. What do you mean you are not sure what to do? This MSDN documentation may help better explain how await works: await (C# Reference)
... View more
06-16-2016
08:29 AM
|
0
|
4
|
2907
|
|
POST
|
I am not sure on what exactly you are asking here however, I am going to make an assumption on what you are asking is what does this line mean inside the MapView: initExtent="-13042576 3854531 -13026007 3870439" This would be: initExtent="XMin YMin XMax YMax" which is all in spatial reference 3857.
... View more
06-16-2016
08:23 AM
|
0
|
0
|
912
|
|
POST
|
Hey Thomas Saldana, I see you marked my comment as helpful. Did this resolve the issue you were having?
... View more
06-16-2016
07:08 AM
|
0
|
0
|
700
|
|
POST
|
Aaron Dick Since I cannot reproduce in-house, can you try doing this: Can you log the path to the geodatabase when you sync. This would look something like this: Log.e("FORESRI",S1ViewerActivity.localGDB.getPath()); This will show us the path the the GDB that you are syncing to has. Does this show the correct path that you expect?
... View more
06-15-2016
05:34 AM
|
0
|
6
|
1749
|
|
POST
|
I think I must be confused on what processes you are doing here. Are you doing a sync and the device goes to sleep or is the device awake while you sync?
... View more
06-14-2016
01:13 PM
|
0
|
0
|
1749
|
|
POST
|
As far as reordering layers goes, I did it this way. I keep layer[0] in this position since it is the basemap: public class MainActivity extends AppCompatActivity {
MapView mapView;
// https://developers.arcgis.com/android/guide/maps-and-layers.htm#ESRI_SECTION1_3CE2C5FDDFA443A78D92843C0DEE2843
@Override protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
mapView = (MapView) findViewById(R.id.map);
Layer[] x = new Layer[] { new ArcGISFeatureLayer("https://sampleserver6.arcgisonline.com/arcgis/rest/services/Wildfire/FeatureServer/0",
ArcGISFeatureLayer.MODE.ONDEMAND),
new ArcGISFeatureLayer("https://sampleserver6.arcgisonline.com/arcgis/rest/services/Wildfire/FeatureServer/1",
ArcGISFeatureLayer.MODE.ONDEMAND),
new ArcGISFeatureLayer("https://sampleserver6.arcgisonline.com/arcgis/rest/services/Wildfire/FeatureServer/2",
ArcGISFeatureLayer.MODE.ONDEMAND)};
mapView.addLayers(x);
Button button = (Button) findViewById(R.id.x);
button.setOnClickListener(new View.OnClickListener() {
@Override public void onClick(View v) {
for (Layer layer : mapView.getLayers()) {
Log.e("NOHE", layer.getName().toString());
}
Layer[] z = mapView.getLayers();
mapView.removeAll();
Layer[] q = new Layer[] {z[0], z[3], z[2], z[1]};
mapView.addLayers(q);
//mapView.refreshDrawableState();
}
});
}
} As far as your other concerns, can you show me with a screenshot where the new points are getting drawn in comparison to your older points?
... View more
06-14-2016
12:31 PM
|
0
|
0
|
3065
|
|
POST
|
Before I address your other concerns in this post, one last thing I would like to confirm. Are your users adding features outside of the initial extent of the features that already exist within your geodatabase? That is, if I have features in Maine, are other users adding points in Washington and they are not getting synced to the geodatabase?
... View more
06-14-2016
11:46 AM
|
0
|
0
|
3065
|
|
POST
|
What is your code snippet for the opening the geodatabase? Can you use the Android Device Monitor to confirm that your path to the geodatabase is correct? Is the insert of new features to the existing geodatabase or is it coming from the server attempting to sync?
... View more
06-14-2016
04:48 AM
|
0
|
0
|
3065
|
|
POST
|
Sure. The sample was hoping that I could quickly test it on my end and analyze it.
... View more
06-13-2016
01:22 PM
|
0
|
0
|
1344
|
|
POST
|
Hi Josh Bartz, Do you have a quick sample demonstrating solely that problem? I would be happy to test this on my end. Thanks, Alexander
... View more
06-13-2016
10:51 AM
|
0
|
2
|
1344
|
|
POST
|
Can you provide sample code and/or a gif demonstrating this animation that you are seeing?
... View more
06-13-2016
06:16 AM
|
0
|
0
|
1203
|
|
POST
|
I Ron Knepper, we talked offline about this and we found that this is a known issue with ArcMap that is currently being examined. We discussed loading it on the device via downloading it from REST and pushing it onto external storage. We also mentioned the following sample which shows how to create tiles on the device. Create Tiles on Device https://github.com/Esri/developer-support/blob/master/runtime-android/create-tiles-on-device/MainActivity.java
... View more
06-13-2016
05:53 AM
|
0
|
0
|
874
|
|
POST
|
Does this work when you are in a connected environment? Also, have you included RenderScript within your application: RenderScript | Android Developers android { compileSdkVersion 23 buildToolsVersion "23.0.3" defaultConfig { minSdkVersion 8 targetSdkVersion 19 renderscriptTargetApi 18 renderscriptSupportModeEnabled true } }
... View more
06-13-2016
05:48 AM
|
0
|
1
|
974
|
|
POST
|
Graphic came from: Activity | Android Developers What I would do is that when onPause() is called in your activity, run the Dispose() command which will close your geodatabase. Then when onResume() is called, reinstantiate your geodatabase. The onPause() may be a better location to dispose of your geodatabase rather than onDestroy since onDestroy will be called when the activity is completely closed, not just placed into the background. Geodatabase | ArcGIS Android 10.2.8 API I hope this helps!
... View more
06-13-2016
05:35 AM
|
0
|
0
|
3065
|
|
POST
|
I believe a good solution to this would be to create a background service and place the sync call in there. This is most likely occurring due to the activity life-cycle of an app. When the app goes to sleep or the screen is turned off / semi closed, the activity is destroyed and with it all running processes in that activity. The background service will ensure that the sync lives beyond the lifecycle of the app. Here is a quick example from Stack Overflow: android - Run upload process in background even when phone is asleep - Stack Overflow EDIT: This may be the best resource here: https://developer.android.com/training/run-background-service/create-service.html EDIT2: You may also want to consider looking at chapter 26 in the Big Nerd Ranches Android Programming Guide.
... View more
06-09-2016
10:56 AM
|
0
|
2
|
3065
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 07-15-2014 03:16 PM | |
| 1 | 01-06-2015 03:33 PM | |
| 1 | 12-02-2014 10:47 AM | |
| 1 | 07-15-2014 03:31 PM | |
| 1 | 09-23-2014 03:59 PM |
| Online Status |
Offline
|
| Date Last Visited |
11-11-2020
02:24 AM
|